For the complete documentation index, see llms.txt. This page is also available as Markdown.

Commands Configuration

The commands configuration is located at config/module/cfg_commands.lua. It allows you to enable, disable, and rename every in-game command available to staff members.


๐Ÿ”ค Command Suggestions

CommandSuggestions = true,

If true, all enabled commands will display auto-complete suggestions in the FiveM chat box when a staff member starts typing the command.


๐Ÿ“‹ Available Commands

Admin Chat

AdminChatCommand = {
    Enabled = true,
    Command = "admin",
    ChatColor = {r = 255, g = 255, b = 255},
}

Send a private message visible only to online staff members.

Option
Description

Enabled

Enable or disable the command

Command

Command name without /. Default: "admin"

ChatColor

RGB color of admin chat messages in the chat box


Note

Add a private internal note to a player's profile. Notes are visible only to staff on the web dashboard and in the admin panel.

Usage: /note [ID] [reason]


Commend

Add a positive commendation to a player's sanction history.

Usage: /commend [ID] [reason]


Warn

Issue a formal warning to a player. The warning is saved to their permanent profile and displayed as a splash message.

Usage: /warn [ID] [reason]


Kick

Remove a player from the server immediately.

Usage: /kick [ID] [reason]


Ban

Ban a player for a specified duration or permanently.

Usage: /ban [ID] [duration] [reason]

Duration examples: 30m, 2h, 7d, 2w, 1mo, p (permanent), c (community ban)


Go To

Teleport to a player's position.

Usage: /goto [ID]

Option
Description

CanBeUsedOnHigherRank

If false, staff cannot teleport to players with a higher rank than themselves


Bring

Teleport one or several players to your position.

Usage: /bring [ID] or /bring [ID1] [ID2] [ID3] if MultiIds is true


Return

Send a player back to their position before the last teleportation.

Usage: /return [ID]


Spectate

Discretely spectate a player from their perspective.

Usage: /spectate [ID]

Press F in-game to exit spectate mode.


๐Ÿ’ก Custom action buttons defined in cfg_button.lua with EnableCommandForThisButton = true also register their own commands automatically and will appear as suggestions if CommandSuggestions is true.

Last updated