decorRegister

DECOR_REGISTER0x9FD90732F56403CE

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

SignatureJavaScript
decorRegister(propertyName: string, type: number): void
SignatureLua
decorRegister(propertyName: string, type: integer)

Usage

JavaScript
decorRegister(propertyName, type);
Lua
decorRegister(propertyName, type)

Parameters

ParameterTypeJavaScriptLua
propertyNamestringstringstring
typeintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Decorators DECORATOR
In the game
void DECOR_REGISTER(const char* propertyName, int type)
Hash
0x9FD90732F56403CE

Open in the interactive natives reference