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
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:
