decorGetFloat
DECOR_GET_FLOAT0x6524A2F114706F43The GTA V native DECOR_GET_FLOAT of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorGetFloat, in JavaScript and in Lua.
decorGetFloat(entity: Entity, propertyName: string): numberdecorGetFloat(entity: Entity, propertyName: string): numberUsage
JavaScript
const value = decorGetFloat(entity, propertyName);Lua
local value = decorGetFloat(entity, propertyName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Decorators DECORATOR
- In the game
float DECOR_GET_FLOAT(Entity entity, const char* propertyName)- Hash
0x6524A2F114706F43- Formerly
_DECOR_GET_FLOAT