_GET_POSIX_TIME_STRUCT
Same as GET_POSIX_TIME except that it takes a single pointer to a struct.
Hash
0x86A68E84E5884951Runtime name
GetPosixTimeStructNamespaceCLOCK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _GET_POSIX_TIME_STRUCT(Any* outTime);Parameters
| Name | Type | Description |
|---|---|---|
outTime | Any* | — |
Returns void
Description
Same as GET_POSIX_TIME except that it takes a single pointer to a struct.
Usage
local outTime = GetPosixTimeStruct(outTime)
-- always works, by hash
local outTime = Citizen.InvokeNative(0x86A68E84E5884951, Citizen.PointerValueIntInitialized(outTime))JavaScript and C#
const outTime = GetPosixTimeStruct(outTime);
// by hash
const outTime = Citizen.invokeNative('0x86A68E84E5884951', Citizen.pointerValueIntInitialized(outTime));var outTime = new OutputArgument();
Function.Call((Hash)0x86A68E84E5884951, outTime);
// outTime.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.