RedM Natives

GET_TIME_OFFSET

Adds the first argument to the second.

Hash0x017008CCDAD48503
Runtime nameGetTimeOffset
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x017008CCDAD48503

Signature

int GET_TIME_OFFSET(int timeA, int timeB);

Parameters

NameTypeDescription
timeAint—
timeBint—

Returns int

Description

Adds the first argument to the second.

Usage

Lua
local retval = GetTimeOffset(timeA, timeB)

-- always works, by hash
local retval = Citizen.InvokeNative(0x017008CCDAD48503, timeA, timeB, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetTimeOffset(timeA, timeB);

// by hash
const retval = Citizen.invokeNative('0x017008CCDAD48503', timeA, timeB, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x017008CCDAD48503, timeA, timeB);

Sources

alloc8or RDR3 NativeDB

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