NetworkClient

isTimeEqualTo

IS_TIME_EQUAL_TO0xF5BC95857BD6D512

The 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.

SignatureJavaScript
isTimeEqualTo(timeA: number, timeB: number): boolean
SignatureLua
isTimeEqualTo(timeA: integer, timeB: integer): boolean

Usage

JavaScript
const result = isTimeEqualTo(timeA, timeB);
Lua
local result = isTimeEqualTo(timeA, timeB)

Parameters

ParameterTypeJavaScriptLua
timeAintnumberinteger
timeBintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference