Remove Permission
π« /removeracepermission
π Description
The /removeracepermission command allows admins to remove a playerβs ability to create races or tracks in the racing system.
This is useful if a player no longer needs race/track creation permissions or if they were mistakenly granted access.
β‘ Syntax
/removeracepermission <playerId> <permission> [category]π Parameters
| Parameter | Type | Description |
|---|---|---|
playerId | number | The in-game server ID of the player whose permission you want to remove |
permission | string | race (race creation), track (track creation), or both (all). |
category | string | (Optional) App category: criminal, leo, or ems. Defaults to criminal. |
β Examples
- Remove race creation permission from player with ID 12 (Criminal):
/removeracepermission 12 race- Remove track creation permission from player with ID 45 (LEO):
/removeracepermission 45 track leo- Remove both permissions from player with ID 5 (EMS):
/removeracepermission 5 both emsπ Permissions
- Restricted to admins only (
group.admin). - Players without admin rights cannot use this command.
βοΈ Behavior
-
If the player is not found, an error notification is shown.
-
If the player is not registered in the racing system for the specified category, an error is shown.
-
If the
permissionargument is invalid, the command will notify:Invalid permission type! Use race, track, or both. -
On success, a notification is sent to the admin confirming that the permission was removed.