decorGetInt
DECOR_GET_INT0xA06C969B02A97298The GTA V native DECOR_GET_INT of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorGetInt, in JavaScript and in Lua.
decorGetInt(entity: Entity, propertyName: string): numberdecorGetInt(entity: Entity, propertyName: string): integerUsage
JavaScript
const result = decorGetInt(entity, propertyName);Lua
local result = decorGetInt(entity, propertyName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Decorators DECORATOR
- In the game
int DECOR_GET_INT(Entity entity, const char* propertyName)- Hash
0xA06C969B02A97298