NetworkClient

isTimeLessThan

IS_TIME_LESS_THAN0xCB2CF5148012C8D0

The GTA V native IS_TIME_LESS_THAN of the NETWORK namespace, as LS:MP client scripts call it: the global function isTimeLessThan, in JavaScript and in Lua.

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

Usage

JavaScript
const result = isTimeLessThan(timeA, timeB);
Lua
local result = isTimeLessThan(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.

Subtracts the second argument from the first, then returns whether the result is negative.

Reference

Namespace
Network NETWORK
In the game
BOOL IS_TIME_LESS_THAN(int timeA, int timeB)
Hash
0xCB2CF5148012C8D0
Formerly
_SUBTRACT_B_FROM_A_AND_CHECK_IF_NEGATIVE

Open in the interactive natives reference