decorSetBool
DECOR_SET_BOOL0x6B1E8E2ED1335B71The GTA V native DECOR_SET_BOOL of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorSetBool, in JavaScript and in Lua.
decorSetBool(entity: Entity, propertyName: string, value: boolean): booleandecorSetBool(entity: Entity, propertyName: string, value: boolean): booleanUsage
JavaScript
const result = decorSetBool(entity, propertyName, value);Lua
local result = decorSetBool(entity, propertyName, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
value | BOOL | boolean | boolean |
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.
This function sets metadata of type bool to specified entity.
Reference
- Namespace
- Decorators DECORATOR
- In the game
BOOL DECOR_SET_BOOL(Entity entity, const char* propertyName, BOOL value)- Hash
0x6B1E8E2ED1335B71