Chat Commands#
| Command | Permission Required | Description |
|---|---|---|
/adminmenu | admin.menu | Open the admin menu |
/noclip | admin.noclip | Toggle noclip mode |
/god | admin.god | Toggle god mode |
/revive [id] | admin.player | Revive yourself or a target player by server ID |
/fix | admin.vehicle | Fix the vehicle you are currently in |
/giveitem <id> <item> [amount] | admin.developer | Give an inventory item to a player by server ID |
/addadmin <license> [group] | group.admin / group.superadmin | Assign a player to an ACE group at runtime |
Command Notes#
- Command names can be changed in
config.luaunderConfig.Commands. /addadminacceptsadmin,moderator, orhelperas the group argument. It defaults toadminif no group is specified./addadmincan only be run in-game by an existing admin — it cannot be run from the server console.
Server-Side Export#
JM-AdminMenu exposes one server-side export that other resources can call to display a notification to a player.
`Notify`#
Sends a notification to a connected player.
exports['jm-adminmenu']:Notify(source, notifyType, message)| Parameter | Type | Description |
|---|---|---|
source | number | The player server ID to notify |
notifyType | string | Notification style: "success", "error", "warning", or "info" |
message | string | The message to display |
Example:
exports['jm-adminmenu']:Notify(source, 'success', 'Welcome to the server!')Note
The export respects Config.Notifications.Provider. If jm-notify is installed and the provider is set to "auto" or "jm-notify", notifications will route through it automatically.