IsAclEnabled: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Checks whether the ACL is enabled or not. ==Syntax== {{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled();}} ==Example== {{CSharpContainer| {{Example}}...")
 
No edit summary
Line 1: Line 1:
Checks whether the ACL is enabled or not.
Checks whether the ACL is enabled or not.


==Syntax==
 
{{CSharpContainer|
{{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled();}}
{{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled();}}


==Example==
{{Parameters}}
{{CSharpContainer|
*'''player:''' parameter input should be in '''Client''' type
 
 
{{Example}}
{{Example}}
<syntaxhighlight lang="C#">
{{#tag:syntaxhighlight|
if (NAPI.ACL.IsAclEnabled())  
if (NAPI.ACL.IsAclEnabled())  
{
{
   // Do stuff...
   // Do stuff...
}
}ng=csharp}}
</syntaxhighlight>
}}
}}


[[Category:Serverside API]]
[[Category:Serverside API]]

Revision as of 20:45, 27 November 2019

Checks whether the ACL is enabled or not.


C# Syntax

bool NAPI.ACL.IsAclEnabled();

Parameters

  • player: parameter input should be in Client type


Example

if (NAPI.ACL.IsAclEnabled()) 
{
  // Do stuff...
}ng=csharp