| Default | Description |
|---|---|
/ptmenu | Opens the peacetime menu. Admin-only. |
Config.Command in shared/config.lua:
Permission model
The command itself is registered unrestricted — there is nocommand.ptmenu ACE to grant. Instead, the handler runs server-side and evaluates the admin paths from Configuration → Admin access: ACE permissions, the identifier whitelist, framework auto-detection, your custom hook, or the Config.DebugAlwaysAdmin override. Only players who pass get the menu; there is no client-side command for non-admins to abuse.
When
ox_lib is available the command is registered through lib.addCommand, so it appears in chat suggestions with the help text “Open the peacetime menu (admin only)”.When access is denied
A non-admin who runs the command gets a “You do not have permission to use this.” toast. At the same time the server console prints two lines:Config.Admins (or grant the ACE) and restart the resource to give that player access. Denied attempts can also be logged to Discord — flip Config.Discord.log.denied to true in shared/sv_config.lua.
