decorExistOn
DECOR_EXIST_ON0x05661B80A8C9165FThe GTA V native DECOR_EXIST_ON of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorExistOn, in JavaScript and in Lua.
decorExistOn(entity: Entity, propertyName: string): booleandecorExistOn(entity: Entity, propertyName: string): booleanUsage
JavaScript
const result = decorExistOn(entity, propertyName);Lua
local result = decorExistOn(entity, propertyName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns whether or not the specified property is set for the entity.
Reference
- Namespace
- Decorators DECORATOR
- In the game
BOOL DECOR_EXIST_ON(Entity entity, const char* propertyName)- Hash
0x05661B80A8C9165F