decorSetFloat
DECOR_SET_FLOAT0x211AB1DD8D0F363AThe GTA V native DECOR_SET_FLOAT of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorSetFloat, in JavaScript and in Lua.
decorSetFloat(entity: Entity, propertyName: string, value: number): booleandecorSetFloat(entity: Entity, propertyName: string, value: number): booleanUsage
JavaScript
const result = decorSetFloat(entity, propertyName, value);Lua
local result = decorSetFloat(entity, propertyName, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
value | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Decorators DECORATOR
- In the game
BOOL DECOR_SET_FLOAT(Entity entity, const char* propertyName, float value)- Hash
0x211AB1DD8D0F363A- Formerly
_DECOR_SET_FLOAT