RedM Natives

DECOR_EXIST_ON

Returns whether or not the specified property is set for the entity.

Hash0xD9D1CDBF3464DCDF
Runtime nameDecorExistOn
NamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x05661B80A8C9165F

Signature

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

Parameters

NameTypeDescription
entityEntity—
propertyNameconst char*—

Returns BOOL

Description

Returns whether or not the specified property is set for the entity.

Usage

Lua
local retval = DecorExistOn(entity, propertyName)

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

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

Sources

alloc8or RDR3 NativeDB

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