Markers
Details
Below, you will find detailed configuration for markers.
Configuration file
config/markers.lua
---@type MarkersConfig
return {
---@type MarkersUnitsConfig
units = {
---@type boolean
onDispatchMap = true,
---@type boolean
nativeMap = true,
---@type table<string, PredefinedUnitMarker>
styling = {
['police'] = {
color = 3,
scale = 0.7,
sprite = 1
}
}
},
---@type number
positionUpdateInterval = 1000
}Detailed types information
positionUpdateInterval number Defines interval timer, when location and blips for users are updated. In miliseconds.
Units
Payload
---@class MarkersUnitsConfig
---@field onDispatchMap boolean
---@field nativeMap boolean
---@field styling table<string, PredefinedUnitMarker> Detailed types information
onDispatchMap boolean Is location shown on map. When disabled, the “Show on map” button is also hidden from units in the Units tab (and the unit map popup), so players can’t reveal an officer’s position there.
nativeMap boolean Is blip shown on native map. When disabled, the “Show on GPS” button is also hidden from units in the Units tab (and the unit map popup).
styling table<string, PredefinedUnitMarker> Styling for markers on the map.
enabledByDefault boolean Defines if quick dispatch is enabled by default.