RedM Natives

DECOR_GET_BOOL

Hash0xDEF3F1B071ABB197
Runtime nameDecorGetBool
NamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDACE671663F2F5DB

Signature

BOOL DECOR_GET_BOOL(Entity entity, const char* propertyName);

Parameters

NameTypeDescription
entityEntity—
propertyNameconst char*—

Returns BOOL

Usage

Lua
local retval = DecorGetBool(entity, propertyName)

-- always works, by hash
local retval = Citizen.InvokeNative(0xDEF3F1B071ABB197, entity, propertyName, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DecorGetBool(entity, propertyName);

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

Sources

alloc8or RDR3 NativeDB

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