The Lab
CLOCK native

_GET_POSIX_TIME_STRUCT

returns void1 parambuild 1207

Fills the outTime structure with the current real-world POSIX date and time.

Signature

C
void _GET_POSIX_TIME_STRUCT(Any* outTime); // 0x86A68E84E5884951 b1207

Parameters

#NameType
1outTimeAny* (out pointer)

Facts

Facts about _GET_POSIX_TIME_STRUCT
Name
_GET_POSIX_TIME_STRUCT
Hash
0x86A68E84E5884951
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local outTime = Citizen.InvokeNative(0x86A68E84E5884951, -- _GET_POSIX_TIME_STRUCT
  Citizen.PointerValueInt() -- Any* outTime
)
print(outTime)
JavaScript
const outTime = Citizen.invokeNative("0x86A68E84E5884951", // _GET_POSIX_TIME_STRUCT
  Citizen.pointerValueInt() // Any* outTime
);
console.log(outTime)
C#
var outTimeArg = new OutputArgument();
Function.Call((Hash)0x86A68E84E5884951, // _GET_POSIX_TIME_STRUCT
  outTimeArg // Any* outTime
);
int outTime = outTimeArg.GetResult<int>();
All CLOCK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.