# CFX::GET_TIMECYCLE_MODIFIER_COUNT

- **Hash:** `0xFE2A1D4D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetTimecycleModifierCount`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_TIMECYCLE_MODIFIER_COUNT

## Signature

```c
int GET_TIMECYCLE_MODIFIER_COUNT();
```

## Returns

`int` — Returns the amount of timecycle modifiers loaded.

## Usage

### Lua

```lua
local retval = GetTimecycleModifierCount()

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

### JavaScript

```js
const retval = GetTimecycleModifierCount();

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0xfe2a1d4d);
```

## Examples

*Source: Cfx.re native reference*

```lua
local count = GetTimecycleModifierCount()
print("we have  " .. count .. "timecycle modifiers loaded")
```

*Sources: Cfx.re native reference.*
