Give Permission
/giveracepermission Command
The /giveracepermission command allows admins to grant specific racing permissions to a player.
Syntax
/giveracepermission <player_id> <permission> [category]Parameters
| Parameter | Type | Description |
|---|---|---|
player_id | number | The ID of the player to grant permission to. |
permission | string | race (host races), track (create/edit tracks), or both (all permissions). |
category | string | (Optional) App category: criminal, leo, or ems. Defaults to criminal. |
Example Usage
1. Grant a player with ID 12 permission to host races (Criminal category):
/giveracepermission 12 race2. Grant a player with ID 7 permission to create or edit tracks (LEO category):
/giveracepermission 7 track leo3. Grant a player with ID 5 both race and track permissions (EMS category):
/giveracepermission 5 both emsPermissions
- Only players with admin privileges can use this command (
group.admin). - The command will fail if the player ID is invalid or the type is incorrect.
- If the player is not yet in the racing system, this command will automatically register them for the specified category.