{"hash":"0x838B34D8","ns":"CFX","name":"GET_TIMECYCLE_VAR_COUNT","slug":"GET_TIMECYCLE_VAR_COUNT","official":true,"named":true,"luaName":"GetTimecycleVarCount","game":"cfx","apiset":"client","returnType":"int","params":[],"returnsDescription":"The amount of available variables for timecycle modifiers.","summary":"Returns the amount of variables available to be applied on timecycle modifiers.","descriptions":[{"source":"cfx","format":"md","body":"Returns the amount of variables available to be applied on timecycle modifiers."}],"examples":[{"lang":"lua","code":"local varCount = GetTimecycleVarCount()\n\nif varCount ~= 0 then\n  for index = 0, varCount - 1 do\n    local varName = GetTimecycleVarNameByIndex(index)\n    local varDefault = GetTimecycleVarDefaultValueByIndex(index)\n\n    print(string.format(\"[%d] %s (%f)\", index, varName, varDefault))\n  end\nend","source":"cfx"}],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/GET_TIMECYCLE_VAR_COUNT","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_TIMECYCLE_VAR_COUNT.md","snippets":{"lua":"local retval = GetTimecycleVarCount()","luaInvoke":"local retval = Citizen.InvokeNative(0x838b34d8, Citizen.ResultAsInteger())","js":"const retval = GetTimecycleVarCount();","jsInvoke":"const retval = Citizen.invokeNative('0x838b34d8', Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x838b34d8);","notes":[]}}