# CFX::SET_WEATHER_CYCLE_ENTRY

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

## Signature

```c
BOOL SET_WEATHER_CYCLE_ENTRY(int index, char* typeName, int timeMult);
```

## Parameters

- `index` (`int`) — The index of the entry to set. Must be between 0 and 255
- `typeName` (`char*`) — The name of the weather type for this cycle
- `timeMult` (`int`) — The relative duration of this cycle, which is multiplied by `msPerCycle` during ['APPLY_WEATHER_CYCLES'](#\_0x3422291C). Must be between 1 and 255

## Returns

`BOOL` — Returns true if all parameters were valid, otherwise false.

## Usage

### Lua

```lua
local retval = SetWeatherCycleEntry(index, typeName, timeMult)

-- always available, by hash
local retval = Citizen.InvokeNative(0xd264d4e1, index, typeName, timeMult, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = SetWeatherCycleEntry(index, typeName, timeMult);

// by hash
const retval = Citizen.invokeNative('0xd264d4e1', index, typeName, timeMult, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xd264d4e1, index, typeName, timeMult);
```

*Sources: Cfx.re native reference.*
