Skip to content

Commit

Permalink
Update SetCloudsAlpha.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spacevx committed Nov 24, 2023
1 parent 68efcbd commit bd3ed28
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions MISC/SetCloudsAlpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ aliases: ["0xF36199225D6D8C86", "_SET_CLOUD_HAT_OPACITY"]
void SET_CLOUDS_ALPHA(float opacity);
```
Allows modification of the cloud intensity when the player is in a switch state [`IS_PLAYER_SWITCH_IN_PROGRESS`](#_0xD9D2CFFF49FAB35F).
You can set the player in a switch state with [`SWITCH_TO_MULTI_FIRSTPART`](#_0xAAB3200ED59016BC).
Allows modification of the cloud intensity. For example it can be used when the player is in a switch state [`IS_PLAYER_SWITCH_IN_PROGRESS`](#_0xD9D2CFFF49FAB35F).
## Parameters
Expand All @@ -27,15 +25,15 @@ if IsPlayerSwitchInProgress() then
end
```

```javascript
```js
// Check if the player is in a Switch "state"
if (IsPlayerSwitchInProgress()) {
// If the player is in a Switch state, set the clouds opacity to 1.0
SetCloudsAlpha(1.0);
}
```

```csharp
```cs
using static CitizenFX.Core.Native.API;
// Check if the player is in a Switch "state"
if (IsPlayerSwitchInProgress()) {
Expand Down

0 comments on commit bd3ed28

Please sign in to comment.