GET_TIME_DIFFERENCE
Subtracts the second argument from the first.
Hash
0xA2C6FC031D46FFF0Runtime name
GetTimeDifferenceNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA2C6FC031D46FFF0Signature
int GET_TIME_DIFFERENCE(int timeA, int timeB);Parameters
| Name | Type | Description |
|---|---|---|
timeA | int | — |
timeB | int | — |
Returns int
Description
Subtracts the second argument from the first.
Usage
local retval = GetTimeDifference(timeA, timeB)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA2C6FC031D46FFF0, timeA, timeB, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetTimeDifference(timeA, timeB);
// by hash
const retval = Citizen.invokeNative('0xA2C6FC031D46FFF0', timeA, timeB, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xA2C6FC031D46FFF0, timeA, timeB);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.