DoesPlayerHaveAccessToCommand
From GTA Network Wiki
DoesPlayerHaveAccessToCommandServer-Side Function
![]() |
![]() |
---|
Checks whether a player has access to the given command based on the ACL.
Syntax
bool NAPI.ACL.DoesPlayerHaveAccessToCommand(Client player, string cmd);
Required Arguments
- player: parameter input should be in Client type.
- cmd: parameter input should be in string type.
NOTE: This function returns data in bool type.
Usage example(s)
if (NAPI.ACL.DoesPlayerHaveAccessToCommand(player, "kick")) { // Do stuff... }
Changelog
Version | Description |
---|---|
1.0 | Release. |