decorSetInt
DECOR_SET_INT0x0CE3AA5E1CA19E10The GTA V native DECOR_SET_INT of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorSetInt, in JavaScript and in Lua.
decorSetInt(entity: Entity, propertyName: string, value: number): booleandecorSetInt(entity: Entity, propertyName: string, value: integer): booleanUsage
JavaScript
const result = decorSetInt(entity, propertyName, value);Lua
local result = decorSetInt(entity, propertyName, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
value | int | number | integer |
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.
Sets property to int.
Reference
- Namespace
- Decorators DECORATOR
- In the game
BOOL DECOR_SET_INT(Entity entity, const char* propertyName, int value)- Hash
0x0CE3AA5E1CA19E10