NAPI.ACL.DoesPlayerHaveAccessToCommand

From RAGE Multiplayer Wiki
Revision as of 18:44, 25 November 2019 by Xabi (talk | contribs)

Checks whether a player has access to the given command based on the ACL.

Syntax

bool NAPI.ACL.DoesPlayerHaveAccessToCommand(Client player, string command);

Required Arguments

  • player: parameter input should be in Client type
  • command: parameter input should be in string type

Example

C# Syntax

Parameters

  • player: parameter input should be in Client type
  • command: parameter input should be in string type

Example

if (NAPI.ACL.DoesPlayerHaveAccessToCommand(player, "kick")) {
  // Do stuff...
}