Behaviour lives in shared/config.lua, secrets and access lists in convars, and the starting ranks and model list in data/. Restart the resource after any change.
General
| Option | Type | Default | What it does |
|---|---|---|---|
locale | string | 'es' | Language of the interface. 'es' or 'en'. Notifications and key names follow the ox:locale convar instead. |
accent | string (hex) | configurable | Accent colour of the interface. |
announceSeconds | number | 12 | Seconds a server announcement stays on screen. Minimum 3. |
reportRetentionDays | number | 30 | Days a closed report transcript is kept. Old ones are deleted every day at 04:00. 0 keeps them forever. |
auditRetentionDays | number | 180 | Days an audit entry is kept. Same daily cleanup. 0 keeps them forever. |
Commands · commands
| Option | Type | Default | What it does |
|---|---|---|---|
panel | string | 'admin' | Command that opens the panel. |
report | string | 'report' | Command that opens the report window for players. |
staffReload | string | 'staffreload' | Command that reloads ranks and staff from the database. |
Keys · keybinds
| Option | Type | Default | What it does |
|---|---|---|---|
panel | string | 'U' | Default key for the panel. '' registers no key; the command still works. |
report | string | '' | Default key for the report window. '' registers no key. |
noclip | string | 'END' | Default key for noclip. |
godmode | string | '' | Default key for god mode. |
invisible | string | '' | Default key for invisibility. |
infiniteAmmo | string | '' | Default key for infinite ammo. |
superJump | string | '' | Default key for super jump. |
blips | string | '' | Default key for player blips on the map. |
names | string | '' | Default key for names above players. |
The seven personal toggles are always registered. With '' they have no default key and each staff member assigns one in the GTA key settings. A key only works for staff with the matching self.* permission.
Names above players · nameplates
| Option | Type | Default | What it does |
|---|---|---|---|
range | number | 480.0 | Metres up to which a name is drawn. |
barRange | number | 45.0 | Metres up to which the health and armour bar is drawn. Beyond it, only the name. |
cullingRadius | number | 500.0 | Network radius given to the staff member while names are on, so distant players are loaded. It costs bandwidth for that client. 0.0 keeps the server default. |
Screen view · screen
| Option | Type | Default | What it does |
|---|---|---|---|
width | number | 1280 | Width of the video in pixels. The height follows the player's screen. |
fps | number | 24 | Frames per second. |
bitrate | number | 4000000 | Bits per second of the video. |
codec | string | 'vp9' | 'vp9' is sharper. 'vp8' uses less CPU on the player's PC. |
keyframeMs | number | 10000 | Milliseconds between full frames. |
audio | boolean | true | true lets the staff turn on the player's microphone while watching. false refuses it. |
maxWatchers | number | 4 | Staff members who can watch the same player from inside the game at once. |
The screen view also needs convars. See Convars.
Spectate · spectate
| Option | Type | Default | What it does |
|---|---|---|---|
hearVoice | boolean | true | true lets the staff member hear the target and nearby players while spectating. false keeps spectating silent. |
hearRadius | number | 12.0 | Metres around the target within which other players are also heard. |
Limits · limits
| Option | Type | Default | What it does |
|---|---|---|---|
messageLength | number | 600 | Maximum characters of a report message. Longer text is cut. |
messageCooldown | number | 2000 | Milliseconds a player must wait between two report messages. |
openReportsPerPlayer | number | 1 | Reports a player can have open at the same time. |
actionCooldown | number | 350 | Milliseconds a staff member must wait between two actions. |
messagesPerReport | number | 150 | Messages a player can write in one report. Staff replies do not count. 0 removes the limit. |
maxMoney | number | 10000000 | Most money a staff member can give in one action. |
maxItems | number | 1000 | Most units of one item a staff member can give in one action. |
Money · moneyItems
Decides which money types are given as an inventory item. A type given as an item goes to the inventory; any other type, such as the bank, is added as a framework balance.
| Option | Type | Default | What it does |
|---|---|---|---|
moneyItems | string or table | 'auto' | 'auto' picks the items for your framework and inventory. A table maps each money type to an item, for example { cash = 'cash', black_money = 'black_money' }. An empty table {} gives every type as a balance. |
What 'auto' resolves to:
| Framework and inventory | Cash | Dirty money |
|---|---|---|
QBox or QBCore with ox_inventory | cash item | black_money item |
ESX with ox_inventory | money item | black_money item |
Any other inventory, such as qb-inventory | Balance | Balance |
Gangs on ESX
ESX has no gangs of its own. The gangs the panel can give on ESX are defined in Cuxial Bridge, in cuxial_bridge/shared/config.lua under esx.gangs, with the same shape as QBox and QBCore gangs. A gang or grade that is not in the list is rejected. isboss marks the boss grade and is optional.
esx = {
gangs = {
none = { label = 'No gang', grades = { [0] = { name = 'Member' } } },
ballas = {
label = 'Ballas',
grades = {
[0] = { name = 'Recruit' },
[1] = { name = 'Member' },
[2] = { name = 'Leader', isboss = true },
},
},
},
},Restart the server after editing the list.
Effects · effects
| Option | Type | Default | What it does |
|---|---|---|---|
drunkSeconds | number | 30 | Seconds the drunk effect lasts. Using the action again removes it earlier. Minimum 1. |
Remote web panel · remote
Connects the server to an external web panel service. It only turns on when enabled is true and both remote convars are set.
| Option | Type | Default | What it does |
|---|---|---|---|
enabled | boolean | false | true turns the remote panel on once both remote convars are set. false keeps it off, whatever the convars say. |
clockSkew | number | 30 | Seconds of clock difference tolerated between the web panel service and the game server. Requests outside it are rejected. |
allowFrom | string[] | local addresses | Addresses allowed to send requests. Compared by prefix. An empty list accepts any address. |
Whoever reaches the server's HTTP port and knows the secret acts as staff. Keep the web panel service on the same machine or on a private network, and never empty allowFrom on a public server.
Even with a valid request, a staff member only gets in from outside when their rank has remote access enabled.
Convars
All of them are read on the server only. Write them with set in server.cfg.
| Convar | Default | What it does |
|---|---|---|
cuxial_admin_screen_owners | empty | Discord IDs allowed to use the screen view, separated by commas or spaces. Empty turns the feature off for everyone. Read when the resource starts. |
sd_phone_relay_url | empty | Address of the media relay. Must start with ws:// or wss://; anything else is ignored. |
sd_phone_relay_key | empty | Key that signs the relay passes. Exactly 64 lowercase hexadecimal characters; anything else is ignored. |
sd_phone_relay_ttl | 45 | Seconds a relay pass is valid. Limited to between 10 and 120. |
cuxial_admin_remote_url | empty | Address of the web panel service. Read when the resource starts. |
cuxial_admin_remote_secret | empty | Secret shared with the web panel service. Read when the resource starts. |
cuxial_admin_debug | 0 | 1 prints every debug trace to the server console. Same as debug = true in shared/config.lua. Read when the resource starts. |
Screen view
Watching a screen needs three things at once:
- The staff member's Discord ID is in
cuxial_admin_screen_owners. - Their rank has the
player.screenpermission. cuxial_bridgeis running. The video goes through its media module.
A rank with every permission still cannot watch screens unless the person is on the list.
The relay is optional:
| Relay | Staff inside the game | Staff on the web panel |
|---|---|---|
| Both relay convars set | Video through the relay | Video through the relay |
| Not set | Video through the game server, at reduced quality | Not available |
Every viewing and every use of the microphone is written to the audit log.
Starting ranks · data/permissions.lua
This file holds two lists:
catalog: the permissions shown in the rank editor, grouped by section. You can change eachlabelto translate it. Do not change anid: the panel checks those exact values.seed: the ranks created the first time the resource starts, when the ranks table is empty. After that, ranks live in the database and are edited from the panel.
Each seed rank has:
| Field | Type | What it does |
|---|---|---|
id | string | Internal name. Lowercase letters, numbers and _. |
label | string | Name shown in the panel. |
remote | boolean | true allows this rank into the remote web panel. |
position | number | Order. The lowest number is the highest rank. |
perms | string[] | Permissions granted. See Commands & permissions. |
Model list · data/peds.lua
The models offered when changing a player's model. Add or remove lines as you like.
{ id = 'mp_m_freemode_01', label = 'Male (freemode)', sub = 'Customisable' },| Field | What it does |
|---|---|
id | Model name. |
label | Name shown in the list. |
sub | Group shown next to it. |
Common changes
Use the panel in English
locale = 'en',setr ox:locale "en"Give cash as a framework balance instead of an item
Replace 'auto' with a table that lists only dirty money:
moneyItems = {
black_money = 'black_money',
},Turn the remote web panel on
remote = {
enabled = true,
clockSkew = 30,
allowFrom = { '127.0.0.1', '::1', 'localhost' },
},Forbid listening to the microphone during the screen view
screen = {
-- other options unchanged
audio = false,
},