RedM Natives

IS_TIME_MORE_THAN

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

Hash0xDE350F8651E4346C
Runtime nameIsTimeMoreThan
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDE350F8651E4346C

Signature

BOOL IS_TIME_MORE_THAN(int timeA, int timeB);

Parameters

NameTypeDescription
timeAint—
timeBint—

Returns BOOL

Description

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

Usage

Lua
local retval = IsTimeMoreThan(timeA, timeB)

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

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

Sources

alloc8or RDR3 NativeDB

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