# CFX::GET_TIMECYCLE_MODIFIER_VAR_COUNT

- **Hash:** `0x60FB60FE`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetTimecycleModifierVarCount`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described with examples
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_TIMECYCLE_MODIFIER_VAR_COUNT

## Signature

```c
int GET_TIMECYCLE_MODIFIER_VAR_COUNT(char* modifierName);
```

## Parameters

- `modifierName` (`char*`) — The timecycle modifier name.

## Returns

`int` — The amount of variables used on a specified timecycle modifier.

## Usage

### Lua

```lua
local retval = GetTimecycleModifierVarCount(modifierName)

-- always available, by hash
local retval = Citizen.InvokeNative(0x60fb60fe, modifierName, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetTimecycleModifierVarCount(modifierName);

// by hash
const retval = Citizen.invokeNative('0x60fb60fe', modifierName, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x60fb60fe, modifierName);
```

## Examples

*Source: Cfx.re native reference*

```lua
local varCount = GetTimecycleModifierVarCount("underwater")

if varCount ~= 0 then
  for index = 0, varCount - 1 do
    local varName = GetTimecycleModifierVarNameByIndex(index)

    print(string.format("[%d] %s", index, varName))
  end
end
```

*Sources: Cfx.re native reference.*
