Skip to content

Configuration

Every option of Cuxial Admin explained: config, convars, starting ranks and the model list.

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 ​

OptionTypeDefaultWhat it does
localestring'es'Language of the interface. 'es' or 'en'. Notifications and key names follow the ox:locale convar instead.
accentstring (hex)configurableAccent colour of the interface.
announceSecondsnumber12Seconds a server announcement stays on screen. Minimum 3.
reportRetentionDaysnumber30Days a closed report transcript is kept. Old ones are deleted every day at 04:00. 0 keeps them forever.
auditRetentionDaysnumber180Days an audit entry is kept. Same daily cleanup. 0 keeps them forever.

Commands · commands ​

OptionTypeDefaultWhat it does
panelstring'admin'Command that opens the panel.
reportstring'report'Command that opens the report window for players.
staffReloadstring'staffreload'Command that reloads ranks and staff from the database.

Keys · keybinds ​

OptionTypeDefaultWhat it does
panelstring'U'Default key for the panel. '' registers no key; the command still works.
reportstring''Default key for the report window. '' registers no key.
noclipstring'END'Default key for noclip.
godmodestring''Default key for god mode.
invisiblestring''Default key for invisibility.
infiniteAmmostring''Default key for infinite ammo.
superJumpstring''Default key for super jump.
blipsstring''Default key for player blips on the map.
namesstring''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 ​

OptionTypeDefaultWhat it does
rangenumber480.0Metres up to which a name is drawn.
barRangenumber45.0Metres up to which the health and armour bar is drawn. Beyond it, only the name.
cullingRadiusnumber500.0Network 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 ​

OptionTypeDefaultWhat it does
widthnumber1280Width of the video in pixels. The height follows the player's screen.
fpsnumber24Frames per second.
bitratenumber4000000Bits per second of the video.
codecstring'vp9''vp9' is sharper. 'vp8' uses less CPU on the player's PC.
keyframeMsnumber10000Milliseconds between full frames.
audiobooleantruetrue lets the staff turn on the player's microphone while watching. false refuses it.
maxWatchersnumber4Staff members who can watch the same player from inside the game at once.

The screen view also needs convars. See Convars.

Spectate · spectate ​

OptionTypeDefaultWhat it does
hearVoicebooleantruetrue lets the staff member hear the target and nearby players while spectating. false keeps spectating silent.
hearRadiusnumber12.0Metres around the target within which other players are also heard.

Limits · limits ​

OptionTypeDefaultWhat it does
messageLengthnumber600Maximum characters of a report message. Longer text is cut.
messageCooldownnumber2000Milliseconds a player must wait between two report messages.
openReportsPerPlayernumber1Reports a player can have open at the same time.
actionCooldownnumber350Milliseconds a staff member must wait between two actions.
messagesPerReportnumber150Messages a player can write in one report. Staff replies do not count. 0 removes the limit.
maxMoneynumber10000000Most money a staff member can give in one action.
maxItemsnumber1000Most 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.

OptionTypeDefaultWhat it does
moneyItemsstring 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 inventoryCashDirty money
QBox or QBCore with ox_inventorycash itemblack_money item
ESX with ox_inventorymoney itemblack_money item
Any other inventory, such as qb-inventoryBalanceBalance

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.

cuxial_bridge/shared/config.lua
lua
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 ​

OptionTypeDefaultWhat it does
drunkSecondsnumber30Seconds 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.

OptionTypeDefaultWhat it does
enabledbooleanfalsetrue turns the remote panel on once both remote convars are set. false keeps it off, whatever the convars say.
clockSkewnumber30Seconds of clock difference tolerated between the web panel service and the game server. Requests outside it are rejected.
allowFromstring[]local addressesAddresses 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.

ConvarDefaultWhat it does
cuxial_admin_screen_ownersemptyDiscord 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_urlemptyAddress of the media relay. Must start with ws:// or wss://; anything else is ignored.
sd_phone_relay_keyemptyKey that signs the relay passes. Exactly 64 lowercase hexadecimal characters; anything else is ignored.
sd_phone_relay_ttl45Seconds a relay pass is valid. Limited to between 10 and 120.
cuxial_admin_remote_urlemptyAddress of the web panel service. Read when the resource starts.
cuxial_admin_remote_secretemptySecret shared with the web panel service. Read when the resource starts.
cuxial_admin_debug01 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:

  1. The staff member's Discord ID is in cuxial_admin_screen_owners.
  2. Their rank has the player.screen permission.
  3. cuxial_bridge is 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:

RelayStaff inside the gameStaff on the web panel
Both relay convars setVideo through the relayVideo through the relay
Not setVideo through the game server, at reduced qualityNot 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 each label to translate it. Do not change an id: 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:

FieldTypeWhat it does
idstringInternal name. Lowercase letters, numbers and _.
labelstringName shown in the panel.
remotebooleantrue allows this rank into the remote web panel.
positionnumberOrder. The lowest number is the highest rank.
permsstring[]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.

lua
{ id = 'mp_m_freemode_01', label = 'Male (freemode)', sub = 'Customisable' },
FieldWhat it does
idModel name.
labelName shown in the list.
subGroup shown next to it.

Common changes ​

Use the panel in English

shared/config.lua
lua
locale = 'en',
server.cfg
cfg
setr ox:locale "en"

Give cash as a framework balance instead of an item

Replace 'auto' with a table that lists only dirty money:

shared/config.lua
lua
moneyItems = {
    black_money = 'black_money',
},

Turn the remote web panel on

shared/config.lua
lua
remote = {
    enabled = true,
    clockSkew = 30,
    allowFrom = { '127.0.0.1', '::1', 'localhost' },
},

Forbid listening to the microphone during the screen view

shared/config.lua
lua
screen = {
    -- other options unchanged
    audio = false,
},

© Cuxial