Skip to content

Configuration ​

All of Navix's configuration lives in shared/config.lua. This file stays editable even on escrow-protected builds (it is listed in escrow_ignore, just like shared/utils.lua).

Main options ​

OptionDefaultDescription
Config.DebugfalseEnables debug logs in the console.
Config.PhoneName'lb-phone'Phone resource name.
Config.AppName'Navix'App display name. Internal identifier — do not change after deployment.
Config.AppDescription'GPS Navigation & Traffic Alerts'Description shown in the App Store.
Config.Developer'Lo Scripts'Developer name shown in the phone.
Config.Iconflaticon URLApp icon (URL).
Config.ThemeColor"FF33CCFF"UI theme color (blue).
Config.MaxFavorites20Maximum favorites per player.
Config.MaxRecentSearches10Number of recent searches kept.

Alert durations ​

Config.AlertDurations sets the lifetime of each alert type (in seconds):

lua
Config.AlertDurations = {
    traffic  = 1800,    -- 30 minutes
    accident = 3600,    -- 1 hour
    police   = 900,     -- 15 minutes
    hazard   = 1800,    -- 30 minutes
    roadwork = 86400,   -- 24 hours
    closure  = 86400,   -- 24 hours
}

The 6 types are declared in Config.AlertTypes (traffic, accident, police, hazard, roadwork, closure). Each type has its own icon (Config.AlertIcons) and color (Config.AlertColors).

Cooldown and confirmations ​

OptionDefaultDescription
Config.AlertCooldown300Delay (s) between two alerts of the same type for the same player — i.e. 5 minutes.
Config.ConfirmationsForBoost3Number of confirmations needed to extend the duration.
Config.BoostDuration600Time (s) added at each confirmation tier — i.e. +10 minutes.

NOTE

The cooldown is applied per alert type: it prevents spam while still letting a player report several incidents of different kinds.

View distance ​

OptionDefaultDescription
Config.AlertViewDistance5000Radius (m) within which a player sees alerts — i.e. 5 km.
Config.AlertConfirmDistance200Maximum distance (m) to be able to confirm an alert.

Favorites ​

OptionDefaultDescription
Config.MaxFavorites20Maximum favorite locations per player (customizable icons and colors).
Config.MaxRecentSearches10Search history kept.

Quick locations ​

Config.QuickLocations lists the predefined locations offered in search. Each entry has a name and coordinates:

lua
Config.QuickLocations = {
    {name = "Central Hospital", coords = {x = 311.4,   y = -592.5,  z = 43.3}},
    {name = "LSPD Station",     coords = {x = 428.0,   y = -984.0,  z = 30.7}},
    {name = "LS Airport",       coords = {x = -1037.0, y = -2737.0, z = 20.2}},
    {name = "Legion Square",    coords = {x = 195.0,   y = -934.0,  z = 30.7}},
    {name = "Maze Bank Tower",  coords = {x = -75.0,   y = -818.0,  z = 326.2}},
    {name = "Vinewood Sign",    coords = {x = 711.0,   y = 1198.0,  z = 348.5}},
    {name = "Vespucci Beach",   coords = {x = -1600.0, y = -1018.0, z = 13.0}},
    {name = "Mount Chiliad",    coords = {x = 501.0,   y = 5604.0,  z = 797.9}},
}

TIP

Adapt this list to your map (MLOs, major RP spots…): add, remove or edit entries freely.

Theme color ​

lua
Config.ThemeColor = "FF33CCFF"   -- blue, hexadecimal format

The color is applied to the interface accent.

Staff groups ​

Config.StaffGroups lists the groups allowed to delete any alert (regular players can only remove their own):

lua
Config.StaffGroups = {'owner', 'admin', 'superadmin', 'god'}

Languages ​

Navix ships with 25 language files in locales/*.json:

ar, ba, cs, de, dk, en, es, fr, hu, it, ja, ko, nl, no, pl, pt-br, pt-pt, ro, ru, sl, sv, th, tr, ua, zh-cn.

The locales/*.json files are declared in fxmanifest.lua and stay editable: modify or add translations as needed.

Tips ​

TIP

  • Do not change Config.AppName after deployment: it acts as the internal identifier in lb-phone.
  • Adjust Config.AlertDurations and Config.AlertCooldown to match your desired RP pace.
  • Lower Config.AlertViewDistance on high-population servers to lighten blip rendering.
  • Enable Config.Debug only during development: it prints callbacks, queries and errors to the console.