NetworkClient

isTimeMoreThan

IS_TIME_MORE_THAN0xDE350F8651E4346C

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

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

Usage

JavaScript
const result = isTimeMoreThan(timeA, timeB);
Lua
local result = isTimeMoreThan(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 first argument from the second, then returns whether the result is negative.

Reference

Namespace
Network NETWORK
In the game
BOOL IS_TIME_MORE_THAN(int timeA, int timeB)
Hash
0xDE350F8651E4346C
Formerly
_SUBTRACT_A_FROM_B_AND_CHECK_IF_NEGATIVE

Open in the interactive natives reference