isTimeEqualTo
IS_TIME_EQUAL_TO0xF5BC95857BD6D512The GTA V native IS_TIME_EQUAL_TO of the NETWORK namespace, as LS:MP client scripts call it: the global function isTimeEqualTo, in JavaScript and in Lua.
isTimeEqualTo(timeA: number, timeB: number): booleanisTimeEqualTo(timeA: integer, timeB: integer): booleanUsage
JavaScript
const result = isTimeEqualTo(timeA, timeB);Lua
local result = isTimeEqualTo(timeA, timeB)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
timeA | int | number | integer |
timeB | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns true if the two times are equal; otherwise returns false.
Reference
- Namespace
- Network NETWORK
- In the game
BOOL IS_TIME_EQUAL_TO(int timeA, int timeB)- Hash
0xF5BC95857BD6D512- Formerly
_ARE_INTEGERS_EQUAL