decorGetFloat

DECOR_GET_FLOAT0x6524A2F114706F43

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

SignatureJavaScript
decorGetFloat(entity: Entity, propertyName: string): number
SignatureLua
decorGetFloat(entity: Entity, propertyName: string): number

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring

Returns

float JavaScript number, Lua number

Reference

Namespace
Decorators DECORATOR
In the game
float DECOR_GET_FLOAT(Entity entity, const char* propertyName)
Hash
0x6524A2F114706F43
Formerly
_DECOR_GET_FLOAT

Open in the interactive natives reference