Skip to main content

Documentation Index

Fetch the complete documentation index at: https://fxscripts.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

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

Roleplay

CommandDescriptionAccessRange
/me <action>Character actionEveryone15 m
/do <observation>Environment descriptionEveryone15 m
/ooc <message>Out of characterEveryone10 m
/me reaches into his coat pocket
/do The pocket is wet from the rain
/ooc brb 2 min

Private messaging

CommandDescriptionAccess
/pm <id> <message>Send a private messageEveryone
/reply <message>Reply to your last PMEveryone
The recipient sees your name + identifier, and the sender ID is tracked so /reply works without re-typing the ID.

Public broadcasts

CommandDescriptionAccess
/announcement <message>Server-wide announcementgroup.admin
/lspd <message>Police broadcastJob: police
/ems <message>EMS broadcastJob: ambulance
Job-restricted commands are styled differently — colored label, badge icon. Configure colors in your active theme.

Chat management

CommandDescriptionAccess
/clsClear your own chatEveryone
/clearClear chat for everyonegroup.admin
/chatadminOpen the in-game admin panelgroup.admin
/reloadthemesHot-reload theme filesAdmin

Disabling a command

In configs/commands.lua:
Commands = {
    ooc = { enabled = false },
}
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:
lib.addCommand('greet', {
    help = 'Greet a player by ID',
    params = {
        { name = 'id', type = 'playerId', help = 'Target' }
    }
}, function(source, args)
    exports.fxChat:addMessage(args.id, {
        args = ('Hello from #%d!'):format(source),
        title = 'Greeter',
        color = '#ec4899',
    })
end)
Full export reference at Server exports.