GET_TIMECYCLE_VAR_COUNT
Returns the amount of variables available to be applied on timecycle modifiers.
Signature
int GET_TIMECYCLE_VAR_COUNT();Returns int — The amount of available variables for timecycle modifiers.
Description
Returns the amount of variables available to be applied on timecycle modifiers.
Usage
local retval = GetTimecycleVarCount()
-- always works, by hash
local retval = Citizen.InvokeNative(0x838b34d8, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetTimecycleVarCount();
// by hash
const retval = Citizen.invokeNative('0x838b34d8', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x838b34d8);Examples
local varCount = GetTimecycleVarCount()
if varCount ~= 0 then
for index = 0, varCount - 1 do
local varName = GetTimecycleVarNameByIndex(index)
local varDefault = GetTimecycleVarDefaultValueByIndex(index)
print(string.format("[%d] %s (%f)", index, varName, varDefault))
end
endSources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.