decorSetFloat

DECOR_SET_FLOAT0x211AB1DD8D0F363A

The 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.

SignatureJavaScript
decorSetFloat(entity: Entity, propertyName: string, value: number): boolean
SignatureLua
decorSetFloat(entity: Entity, propertyName: string, value: number): boolean

Usage

JavaScript
const result = decorSetFloat(entity, propertyName, value);
Lua
local result = decorSetFloat(entity, propertyName, value)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring
valuefloatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Decorators DECORATOR
In the game
BOOL DECOR_SET_FLOAT(Entity entity, const char* propertyName, float value)
Hash
0x211AB1DD8D0F363A
Formerly
_DECOR_SET_FLOAT

Open in the interactive natives reference