RedM Natives

GET_TIMECYCLE_MODIFIER_COUNT

Hash0xFE2A1D4D
Runtime nameGetTimecycleModifierCount
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

int GET_TIMECYCLE_MODIFIER_COUNT();

Returns int — Returns the amount of timecycle modifiers loaded.

Usage

Lua
local retval = GetTimecycleModifierCount()

-- always works, by hash
local retval = Citizen.InvokeNative(0xfe2a1d4d, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetTimecycleModifierCount();

// by hash
const retval = Citizen.invokeNative('0xfe2a1d4d', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xfe2a1d4d);

Examples

LUA · Cfx.re native reference
local count = GetTimecycleModifierCount()
print("we have  " .. count .. "timecycle modifiers loaded")

Sources

Cfx.re native reference

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