Skip to content

Samuels-Development/sd-waypoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sd-waypoints

A stylish 3D waypoint marker for FiveM that displays distance to your map waypoint with smooth animations and multiple visual styles.

image image image

GitHub release Discord

If you have any issues or suggestions, feel free to PR, create an issue or join my discord: https://discord.gg/FzPehMQaBQ

📋 Dependencies

🎯 Features

  • 3D World Marker - Displays a floating marker above your waypoint location in the game world
  • Live Distance - Real-time distance updates as you travel toward your destination
  • Multiple Styles - Choose from classic, modern, or elegant visual designs
  • Smooth Animations - Height adjusts dynamically based on distance with smooth lerp transitions
  • Unit System - Supports both metric (m/km) and imperial (ft/mi) measurements
  • Customizable Color - Set your preferred marker color via hex code

⚠️ Performance Note

While efforts have been made to optimize this resource, it does run at a higher baseline than typical scripts due to the DUI (Dynamic UI) rendering required for the marker display.

Expected Performance:

  • ~0.00ms when no waypoint is set
  • ~0.01-0.02ms when waypoint is set but you're not actively looking at it
  • ~0.05-0.07ms when waypoint is active and driving toward it

The render thread must run every frame to display the sprite, and the DUI browser engine adds inherent overhead. This is a trade-off for the visual flexibility that DUI provides.


📦 Installation

  1. Download the latest release (ZIP, NOT SOURCE)
  2. Ensure ox_lib is started before sd-waypoints
  3. Add sd-waypoints to your resources folder
  4. Add ensure sd-waypoints to your server.cfg

🛠️ Configuration

All settings are defined in config.lua:

return {
    -- Locale for translations (e.g., 'en', 'de')
    Locale = 'en',

    -- Waypoint marker style
    -- Options: 'classic', 'modern', 'elegant'
    Style = 'classic',

    -- The color of the waypoint marker (hex color code)
    Color = '#22C55E',

    -- Unit system for distance display
    -- true = Metric (meters and kilometers)
    -- false = Imperial (feet and miles)
    UseMetric = true,
}

Style Options

Style Description
classic Large distance display with divider and label
modern Clean badge design with colored label bar
elegant Decorative frame with corner accents and diamond separator

🎨 Customization

Changing the Color

Set any valid hex color code:

Color = '#22C55E',  -- Green (default)
Color = '#3B82F6',  -- Blue
Color = '#EF4444',  -- Red
Color = '#F59E0B',  -- Amber

Switching Unit Systems

UseMetric = true,   -- Shows: 150 M, 1.2 KM
UseMetric = false,  -- Shows: 492 FT, 0.7 MI

🌐 Localization

Translation files are located in the locales/ folder. The marker displays the localized "WAYPOINT" label based on your configured locale.

To add a new language, create a new file in locales/ (e.g., fr.json) following the existing format.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published