lib.addCommand from ox_lib — typed parameters, live
hints as you type.
Roleplay
| Command | Description | Access | Range |
|---|---|---|---|
/me <action> | Character action | Everyone | 15 m |
/do <observation> | Environment description | Everyone | 15 m |
/ooc <message> | Out of character | Everyone | 10 m |
Private messaging
| Command | Description | Access |
|---|---|---|
/pm <id> <message> | Send a private message | Everyone |
/reply <message> | Reply to your last PM | Everyone |
/reply works without re-typing the ID.
Public broadcasts
| Command | Description | Access |
|---|---|---|
/announcement <message> | Server-wide announcement | group.admin |
/lspd <message> | Police broadcast | Job: police |
/ems <message> | EMS broadcast | Job: ambulance |
Chat management
| Command | Description | Access |
|---|---|---|
/cls | Clear your own chat | Everyone |
/clear | Clear chat for everyone | group.admin |
/chatadmin | Open the in-game admin panel | group.admin |
/reloadthemes | Hot-reload theme files | Admin |
Disabling a command
Inconfigs/commands.lua:
restart fxChat.
Permissions
- Group —
group = 'admin'checksIsPlayerAceAllowed(src, 'group.<name>') - Job —
job = 'police'checks the player’s framework job
{ enabled = true, group = 'mod' }.
Adding your own command
lib.addCommand works as expected — drop your file under
src/handlers/custom/commands.lua:
