You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-gen/native-misc.def.lua
+61-16Lines changed: 61 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -274,18 +274,40 @@ function AreStringsEqual(string1, string2) end
274
274
functionUpdateOnscreenKeyboard() end
275
275
276
276
277
-
--- ```
278
-
--- 0 as param = weird black and green screen
279
-
--- 0.1 - 0.99 = Prevent rain effect from falling (still sound and effects on puddles) and prevent puddles from increase/decrease, seems than it prevent any weather change too
280
-
--- 1 and more = "Unfreeze" rain puddles but clear weather too
281
-
--- When 'freezing' is enabled, it seem to also freeze value getted with GetRainLevel
282
-
--- ```
283
-
---
277
+
--- Clears the active weather type after a specific amount of time determined by `transitionTimeInMs`.
functionN_0x0cf97f497fe7d048(transitionTimeInMs) end
289
311
290
312
291
313
--- RegisterEnumToSave
@@ -5573,18 +5595,26 @@ function SlerpNearQuaternion(t, x, y, z, w, x1, y1, z1, w1) end
5573
5595
functionN_0xf2f6a2fa49278625(t, x, y, z, w, x1, y1, z1, w1) end
5574
5596
5575
5597
5576
-
--- SetCloudHatOpacity
5577
-
---
5598
+
--- Allows modification of the cloud opacity. It can also be used in other contexts, such as when the player is in a switch state [`IS_PLAYER_SWITCH_IN_PROGRESS`](https://docs.fivem.net/natives/?_0xD9D2CFFF49FAB35F).
5599
+
--- @usage -- Check if the player is in a Switch "state"
5600
+
--- if IsPlayerSwitchInProgress() then
5601
+
--- -- If the player is in a Switch state, set the clouds opacity to 1.0
--- Allows modification of the cloud opacity. It can also be used in other contexts, such as when the player is in a switch state [`IS_PLAYER_SWITCH_IN_PROGRESS`](https://docs.fivem.net/natives/?_0xD9D2CFFF49FAB35F).
5613
+
--- @usage -- Check if the player is in a Switch "state"
5614
+
--- if IsPlayerSwitchInProgress() then
5615
+
--- -- If the player is in a Switch state, set the clouds opacity to 1.0
@@ -5593,6 +5623,21 @@ function SetCloudHatOpacity(opacity) end
5593
5623
functionN_0xf36199225d6d8c86(opacity) end
5594
5624
5595
5625
5626
+
--- # New Name: SetCloudsAlpha
5627
+
--- Allows modification of the cloud opacity. It can also be used in other contexts, such as when the player is in a switch state [`IS_PLAYER_SWITCH_IN_PROGRESS`](https://docs.fivem.net/natives/?_0xD9D2CFFF49FAB35F).
5628
+
--- @usage -- Check if the player is in a Switch "state"
5629
+
--- if IsPlayerSwitchInProgress() then
5630
+
--- -- If the player is in a Switch state, set the clouds opacity to 1.0
0 commit comments