decorSetBool

DECOR_SET_BOOL0x6B1E8E2ED1335B71

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring
valueBOOLbooleanboolean

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.

This function sets metadata of type bool to specified entity.

Reference

Namespace
Decorators DECORATOR
In the game
BOOL DECOR_SET_BOOL(Entity entity, const char* propertyName, BOOL value)
Hash
0x6B1E8E2ED1335B71

Open in the interactive natives reference