getTimeDifference
GET_TIME_DIFFERENCE0xA2C6FC031D46FFF0The GTA V native GET_TIME_DIFFERENCE of the NETWORK namespace, as LS:MP client scripts call it: the global function getTimeDifference, in JavaScript and in Lua.
getTimeDifference(timeA: number, timeB: number): numbergetTimeDifference(timeA: integer, timeB: integer): integerUsage
JavaScript
const result = getTimeDifference(timeA, timeB);Lua
local result = getTimeDifference(timeA, timeB)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
timeA | int | number | integer |
timeB | int | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Subtracts the second argument from the first.
Reference
- Namespace
- Network NETWORK
- In the game
int GET_TIME_DIFFERENCE(int timeA, int timeB)- Hash
0xA2C6FC031D46FFF0