Skip to main content
All commands use lib.addCommand from ox_lib — typed parameters, live hints as you type.

Roleplay

Private messaging

The recipient sees your name + identifier, and the sender ID is tracked so /reply works without re-typing the ID.

Public broadcasts

Job-restricted commands are styled differently — colored label, badge icon. Configure colors in your active theme.

Chat management

Disabling a command

In configs/commands.lua:
Then restart fxChat.

Permissions

  • Groupgroup = 'admin' checks IsPlayerAceAllowed(src, 'group.<name>')
  • Jobjob = 'police' checks the player’s framework job
You can mix both. Example for moderator-only: { enabled = true, group = 'mod' }.

Adding your own command

lib.addCommand works as expected — drop your file under src/handlers/custom/commands.lua:
Full export reference at Server exports.