Skip to Content
OLS BaseConfiguration (config.lua)

Configuration (config.lua)

All options below live in config.lua at the root of the ols_base resource. After editing, restart ols_base (or the server).

Overview

OptionPurpose
debugModeWhen true, allows extra debug logging inside the base. Set false on production if you want less noise.
voiceSystemHow voice is detected: auto, or force pma-voice / saltychat. Used by shared voice logic so OLS resources (e.g. HUD) know which system is active.
voiceResourceNameFolder names of the pma-voice and Salty Chat resources on your server. Must match resources directory names.
pointRenderDistanceHow far (in meters) interaction points can be drawn when scripts use the base’s point system.
interactionDistanceHow close the player must be (meters) for point interaction to apply.
adminGroupsGroup names treated as admin for isAdmin-style checks in the framework bridge.
showNotificationFunction the base calls to show a notification on the client (default wires ESX-style events).
showHelpNotificationFunction for help text notifications (default wires ESX-style events).

Voice

FieldValuesMeaning
voiceSystem”auto”, “pma-voice”, “saltychat”auto: use whichever voice resource is started first (pma, then salty). Forced modes skip detection.
voiceResourceName.pmastringDefault “pma-voice”. Change if your resource folder name differs.
voiceResourceName.saltychatstringDefault “saltychat”. Change if your folder name differs.

If auto is set but neither resource is started, the base will error until you start one or switch to a forced mode.

Distances

These affect behavior when OLS scripts use the base’s client point helpers (markers / proximity), not the HUD layout directly.

FieldDefault (example)Meaning
pointRenderDistance20Max distance to show/render the point.
interactionDistance2Max distance to count as “at” the point for interaction.

Admin groups

adminGroups is a Lua list of permission group names (e.g. "admin", "superadmin"). They should match what your framework uses for staff. The server bridge uses this list when resolving admin checks.

If staff features never trigger, verify these strings match your framework’s group names.

Notification hooks

The default config triggers ESX-style client events:

config.lua
showNotification = function(title, message, type, duration) TriggerEvent("esx:showNotification", title, message, type, duration) end, showHelpNotification = function(message) TriggerEvent("esx:showHelpNotification", message) end

QBCore / Qbox servers usually need to replace these with events or exports your stack uses (for example ox_lib notify, or QBCore notify). Until you do, notifications routed through these hooks may not appear.

The type parameter is documented in the Lua annotation as info, success, error, or warning (check your config.lua comment for the exact spelling your build uses).


Framework · Installation

Last updated on