decorSetInt

DECOR_SET_INT0x0CE3AA5E1CA19E10

The GTA V native DECOR_SET_INT of the DECORATOR namespace, as LS:MP client scripts call it: the global function decorSetInt, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring
valueintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets property to int.

Reference

Namespace
Decorators DECORATOR
In the game
BOOL DECOR_SET_INT(Entity entity, const char* propertyName, int value)
Hash
0x0CE3AA5E1CA19E10

Open in the interactive natives reference