RedM Natives

_GET_POSIX_TIME_STRUCT

Same as GET_POSIX_TIME except that it takes a single pointer to a struct.

Hash0x86A68E84E5884951
Runtime nameGetPosixTimeStruct
NamespaceCLOCK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _GET_POSIX_TIME_STRUCT(Any* outTime);

Parameters

NameTypeDescription
outTimeAny*—

Returns void

Description

Same as GET_POSIX_TIME except that it takes a single pointer to a struct.

Usage

Lua
local outTime = GetPosixTimeStruct(outTime)

-- always works, by hash
local outTime = Citizen.InvokeNative(0x86A68E84E5884951, Citizen.PointerValueIntInitialized(outTime))
JavaScript and C#
JavaScript
const outTime = GetPosixTimeStruct(outTime);

// by hash
const outTime = Citizen.invokeNative('0x86A68E84E5884951', Citizen.pointerValueIntInitialized(outTime));
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.