Kartik Scripts

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

ParameterTypeDescription
playerIdnumberThe in-game server ID of the player whose permission you want to remove
permissionstringrace (race creation), track (track creation), or both (all).
categorystring(Optional) App category: criminal, leo, or ems. Defaults to criminal.

βœ… Examples

  1. Remove race creation permission from player with ID 12 (Criminal):
/removeracepermission 12 race
  1. Remove track creation permission from player with ID 45 (LEO):
/removeracepermission 45 track leo
  1. 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 permission argument 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.

On this page