DECOR_EXIST_ON
Returns whether or not the specified property is set for the entity.
Hash
0xD9D1CDBF3464DCDFRuntime name
DecorExistOnNamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x05661B80A8C9165FSignature
BOOL DECOR_EXIST_ON(Entity entity, const char* propertyName);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
propertyName | const char* | — |
Returns BOOL
Description
Returns whether or not the specified property is set for the entity.
Usage
local retval = DecorExistOn(entity, propertyName)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD9D1CDBF3464DCDF, entity, propertyName, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DecorExistOn(entity, propertyName);
// by hash
const retval = Citizen.invokeNative('0xD9D1CDBF3464DCDF', entity, propertyName, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xD9D1CDBF3464DCDF, entity, propertyName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.