DoesPlayerHaveAccessToCommand

From GTA Network Wiki
Jump to: navigation, search

DoesPlayerHaveAccessToCommand
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

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.

References