Skip to content

Commands & permissions

Commands of Cuxial Multichar, who can use them and how staff permissions work.

Every command name can be changed in shared/config.lua. These are the defaults.

Commands ​

CommandWhoWhat it does
/logoutStaff (group.admin)Sends you back to the character selection
/logoutplayer [id]Staff (group.admin) and server consoleSends another player back to the character selection. id is the server ID of the player
/mcadminStaff (group.admin and the permission in admin.permission)Opens the admin panel, in game and in the character selection
/partnerinvite [target] [type]EveryoneInvites a nearby player to appear with you in the selection. target is their server ID. type is cp (couple) or bff (best friend)
/forcepartner [citizenid] [type]Staff (group.admin)Sets your partner by citizenid, without an invitation. Same type values
/estaturaMinor characters with growth enabled by staffOpens the height panel. The name is set in family.growthCommand

/partnerinvite needs the other player within 10 metres, and they have 60 seconds to answer. A player can send 3 invitations per minute. The three values are in the partner block of the config. With partner.enabled = false, /partnerinvite and /forcepartner do not exist.

Optional command ​

vehicles.spotCommand is disabled by default. Give it a name and the command copies your current position as a vec4 to the clipboard. It is meant for filling data/vehicle_locations.lua.

shared/config.lua
lua
vehicles = {
    enabled = true,
    resource = "cuxial_garages",
    spotCommand = "mcspot",
},

Keys ​

Cuxial Multichar registers no key bindings.

Permissions ​

Staff commands use the restricted field of each command. It is an ACE group, checked by ox_lib. The permission of /forcepartner is in partner.commands.force.

shared/config.lua
lua
commands = {
    logout = { name = "logout", restricted = "group.admin" },
    logoutPlayer = { name = "logoutplayer", restricted = "group.admin" },
},

To give a player that group:

server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin

Set restricted = false to open a command to every player.

The exports that approve minor characters do not check permissions. The resource that calls them must do it. See Exports & events.

© Cuxial