From bd3ed28d72df54a94cfbc825d19e672f1cb156f5 Mon Sep 17 00:00:00 2001 From: Space V <40030799+ahcenezdh@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:24:55 +0100 Subject: [PATCH] Update SetCloudsAlpha.md --- MISC/SetCloudsAlpha.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/MISC/SetCloudsAlpha.md b/MISC/SetCloudsAlpha.md index 1721f34d2..2b44aba18 100644 --- a/MISC/SetCloudsAlpha.md +++ b/MISC/SetCloudsAlpha.md @@ -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 @@ -27,7 +25,7 @@ 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 @@ -35,7 +33,7 @@ if (IsPlayerSwitchInProgress()) { } ``` -```csharp +```cs using static CitizenFX.Core.Native.API; // Check if the player is in a Switch "state" if (IsPlayerSwitchInProgress()) {