RedM Natives

GET_TIME_DIFFERENCE

Subtracts the second argument from the first.

Hash0xA2C6FC031D46FFF0
Runtime nameGetTimeDifference
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA2C6FC031D46FFF0

Signature

int GET_TIME_DIFFERENCE(int timeA, int timeB);

Parameters

NameTypeDescription
timeAint—
timeBint—

Returns int

Description

Subtracts the second argument from the first.

Usage

Lua
local retval = GetTimeDifference(timeA, timeB)

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

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

Sources

alloc8or RDR3 NativeDB

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