NAPI.ACL.DoesPlayerHaveAccessToCommand

From RAGE Multiplayer Wiki
Revision as of 18:43, 25 November 2019 by Xabi (talk | contribs) (Created page with "Checks whether a player has access to the given command based on the ACL. ==Syntax== <pre>bool NAPI.ACL.DoesPlayerHaveAccessToCommand(Client player, string command);</pre> =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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...
}