_GET_POSIX_TIME_STRUCT
Fills the outTime structure with the current real-world POSIX date and time.
Signature
void _GET_POSIX_TIME_STRUCT(Any* outTime); // 0x86A68E84E5884951 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | outTime | Any* (out pointer) |
Facts
| 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.
local outTime = Citizen.InvokeNative(0x86A68E84E5884951, -- _GET_POSIX_TIME_STRUCT
Citizen.PointerValueInt() -- Any* outTime
)
print(outTime)const outTime = Citizen.invokeNative("0x86A68E84E5884951", // _GET_POSIX_TIME_STRUCT
Citizen.pointerValueInt() // Any* outTime
);
console.log(outTime)var outTimeArg = new OutputArgument();
Function.Call((Hash)0x86A68E84E5884951, // _GET_POSIX_TIME_STRUCT
outTimeArg // Any* outTime
);
int outTime = outTimeArg.GetResult<int>();Related CLOCK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.