class Decorator
package fivem.client.natives
Static methods
staticdecorExistOn(entity:Dynamic, propertyName:String):Bool
Returns whether or not the specified property is set for the entity. staticdecorGetBool(entity:Dynamic, propertyName:String):Bool
staticdecorGetFloat(entity:Dynamic, propertyName:String):Float
staticdecorGetInt(entity:Dynamic, propertyName:String):Int
staticdecorIsRegisteredAsType(propertyName:String, type:Int):Bool
staticdecorRegister(propertyName:String, type:Int):Dynamic
enum eDecorType
{
DECOR_TYPE_FLOAT = 1,
DECOR_TYPE_BOOL = 2,
DECOR_TYPE_INT = 3,
DECOR_TYPE_STRING = 4,
DECOR_TYPE_TIME = 5
};staticdecorRemove(entity:Dynamic, propertyName:String):Bool
staticdecorSetBool(entity:Dynamic, propertyName:String, value:Bool):Bool
This function sets metadata of type bool to specified entity.