decorSetTime

DECOR_SET_TIME0x95AED7B8E39ECAA4

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

SignatureJavaScript
decorSetTime(entity: Entity, propertyName: string, timestamp: number): boolean
SignatureLua
decorSetTime(
  entity: Entity,
  propertyName: string,
  timestamp: integer
): boolean

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
propertyNamestringstringstring
timestampintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Decorators DECORATOR
In the game
BOOL DECOR_SET_TIME(Entity entity, const char* propertyName, int timestamp)
Hash
0x95AED7B8E39ECAA4

Open in the interactive natives reference