RedM Natives

IS_TIME_LESS_THAN

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

Hash0xCB2CF5148012C8D0
Runtime nameIsTimeLessThan
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xCB2CF5148012C8D0

Signature

BOOL IS_TIME_LESS_THAN(int timeA, int timeB);

Parameters

NameTypeDescription
timeAint—
timeBint—

Returns BOOL

Description

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

Usage

Lua
local retval = IsTimeLessThan(timeA, timeB)

-- always works, by hash
local retval = Citizen.InvokeNative(0xCB2CF5148012C8D0, timeA, timeB, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsTimeLessThan(timeA, timeB);

// by hash
const retval = Citizen.invokeNative('0xCB2CF5148012C8D0', timeA, timeB, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xCB2CF5148012C8D0, timeA, timeB);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.