RedM Natives

IS_PRINCIPAL_ACE_ALLOWED

Hash0x37CF52CE
Runtime nameIsPrincipalAceAllowed
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

BOOL IS_PRINCIPAL_ACE_ALLOWED(char* principal, char* object);

Parameters

NameTypeDescription
principalchar*—
objectchar*—

Returns BOOL

Usage

Lua
local retval = IsPrincipalAceAllowed(principal, object)

-- always works, by hash
local retval = Citizen.InvokeNative(0x37cf52ce, principal, object, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPrincipalAceAllowed(principal, object);

// by hash
const retval = Citizen.invokeNative('0x37cf52ce', principal, object, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x37cf52ce, principal, object);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.