decorGetInt

DECOR_GET_INT0xA06C969B02A97298

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

SignatureJavaScript
decorGetInt(entity: Entity, propertyName: string): number
SignatureLua
decorGetInt(entity: Entity, propertyName: string): integer

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring

Returns

int JavaScript number, Lua integer

Reference

Namespace
Decorators DECORATOR
In the game
int DECOR_GET_INT(Entity entity, const char* propertyName)
Hash
0xA06C969B02A97298

Open in the interactive natives reference