RedM Natives

IS_PLAYER_ACE_ALLOWED

Hash0xDEDAE23D
Runtime nameIsPlayerAceAllowed
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL IS_PLAYER_ACE_ALLOWED(char* playerSrc, char* object);

Parameters

NameTypeDescription
playerSrcchar*—
objectchar*—

Returns BOOL

Usage

Lua
local retval = IsPlayerAceAllowed(playerSrc, object)

-- always works, by hash
local retval = Citizen.InvokeNative(0xdedae23d, playerSrc, object, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerAceAllowed(playerSrc, object);

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

Sources

Cfx.re native reference

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