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
 
(4 intermediate revisions by the same user not shown)
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==
 
{{CSharpContainer|
{{Example}}
{{Example}}
<syntaxhighlight lang="C#">
{{#tag:syntaxhighlight|
if (NAPI.ACL.IsAclEnabled())  
if ({{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled())  
{
{
   // Do stuff...
   // Do stuff...
}
}|lang=csharp}}
</syntaxhighlight>
}}
}}


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

Latest revision as of 18:15, 28 November 2019

Checks whether the ACL is enabled or not.


C# Syntax

bool NAPI.ACL.IsAclEnabled();


Example

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