Config
Path: data/config.lua (or your resource config). These defaults are used when creating controls/speakers if a field is omitted in a booth definition.
return {
debug = false,
key = 'E', -- Used by zone/marker/points controls (see sp_core data/keys.lua)
target = { -- handled in sp_core
icon = 'fa-solid fa-music',
iconColor = 'white',
defaultDistance = 2.0,
defaultRadius = 1.0,
drawSprite = true,
},
textUi = { -- sp_core configured text ui
icon = 'fa-solid fa-music',
position = 'right-center',
},
speakers = {
defaultDistance = 5.0, -- how far sound travels
defaultVolume = 50, -- 0–100
},
points = { -- ox_lib points
defaultDistance = 3.0,
},
markers = { -- ox_lib marker
defaultDistance = 3.0,
defaultWidth = 1.0,
defaultHeight = 1.0,
defaultMarkerType = 1,
defaultColor = { r = 255, g = 255, b = 255, a = 255 },
},
}Notes
Values here act as fallbacks if not provided by the booth/location.
keymust match a keybind fromrequire('@sp_core.data.keys').targetrendering is delegated to sp_core (bridge/custom).Keep volume within 0–100; distances are in game units.
Last updated