decorSetTime
DECOR_SET_TIME0x95AED7B8E39ECAA4The 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.
decorSetTime(entity: Entity, propertyName: string, timestamp: number): booleandecorSetTime(
entity: Entity,
propertyName: string,
timestamp: integer
): booleanUsage
JavaScript
const result = decorSetTime(entity, propertyName, timestamp);Lua
local result = decorSetTime(entity, propertyName, timestamp)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
propertyName | string | string | string |
timestamp | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Decorators DECORATOR
- In the game
BOOL DECOR_SET_TIME(Entity entity, const char* propertyName, int timestamp)- Hash
0x95AED7B8E39ECAA4