decorExistOn

DECOR_EXIST_ON0x05661B80A8C9165F

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring

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.

Returns whether or not the specified property is set for the entity.

Reference

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

Open in the interactive natives reference