RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_TIMECYCLE_VAR_COUNT

GET_TIMECYCLE_VAR_COUNT

Returns the amount of variables available to be applied on timecycle modifiers.

CFX

Signature

lua
GetTimecycleVarCount()
-- returns int

Usage

Named call
GetTimecycleVarCount()
InvokeNative
Citizen.InvokeNative(0x838B34D8)
lua 1
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
end

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Usage
  • Details