decorGetBool

DECOR_GET_BOOL0xDACE671663F2F5DB

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

SignatureJavaScript
decorGetBool(entity: Entity, propertyName: string): boolean
SignatureLua
decorGetBool(entity: Entity, propertyName: string): boolean

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Decorators DECORATOR
In the game
BOOL DECOR_GET_BOOL(Entity entity, const char* propertyName)
Hash
0xDACE671663F2F5DB

Open in the interactive natives reference