isTimeLessThan
IS_TIME_LESS_THAN0xCB2CF5148012C8D0The 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.
isTimeLessThan(timeA: number, timeB: number): booleanisTimeLessThan(timeA: integer, timeB: integer): booleanUsage
JavaScript
const result = isTimeLessThan(timeA, timeB);Lua
local result = isTimeLessThan(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.
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