Skip to content

Commit 2776896

Browse files
Release 2023-11-27
1 parent 7351995 commit 2776896

File tree

7 files changed

+250
-86
lines changed

7 files changed

+250
-86
lines changed

docs-gen/native-entity.def.lua

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,8 +1832,19 @@ function SetEntityAlwaysPrerender(entity, toggle) end
18321832
function SetEntityAsMissionEntity(entity, p1, p2) end
18331833

18341834

1835-
--- Deletes the specified entity, and invalidates the passed handle (i.e. in/out argument).
1836-
---
1835+
--- Delete the specified entity, and invalidate the passed handle (i.e., the in/out argument).
1836+
--- You might want to check if the entity exists before with [DOES_ENTITY_EXIST](https://docs.fivem.net/natives/?_0x7239B21A38F536BA).
1837+
--- @usage -- Retrieve the vehicle the player is currently in.
1838+
--- local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
1839+
---
1840+
--- -- Check if the vehicle exists in the game world.
1841+
--- if not DoesEntityExist(vehicle) then
1842+
--- -- If the vehicle does not exist, end the execution of the code here.
1843+
--- return
1844+
--- end
1845+
---
1846+
--- -- If the vehicle does exist, delete the vehicle entity from the game world.
1847+
--- DeleteEntity(vehicle
18371848
--- @hash [0xAE3CBE5BF394C9C9](https://docs.fivem.net/natives/?_0xAE3CBE5BF394C9C9)
18381849
--- @param entity Entity (Entity*)
18391850
--- @return void

docs-gen/native-hud.def.lua

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5882,24 +5882,33 @@ function ShowHeightOnBlip(blip, toggle) end
58825882
function N_0x75a16c3da34f1245(blip, toggle) end
58835883

58845884

5885-
--- This native is used to colorize certain map components like the army base at the top of the map.
5886-
---
5887-
--- An incomplete list of components ID:
5888-
---
5889-
--- 0: Los Santos' air port yellow lift-off markers.
5890-
--- 1: Sandy Shore's air port yellow lift-off markers.
5891-
--- 2: Trevor's air port yellow lift-off markers.
5892-
--- 6: Vespucci Beach lifeguard building.
5893-
--- 15: Army base.
5894-
---
5895-
--- [List of hud colors](https://docs.fivem.net/docs/game-references/hud-colors/)
5896-
---
5885+
--- This native is used to colorize/toggle certain map components like the army base.
5886+
---
5887+
--- Component IDs 6 through 14 are used by the freemode event King of the Castle in GTA Online.
5888+
---
5889+
--- ### An incomplete list of component IDs:
5890+
---
5891+
--- * **0**: Los Santos International Airport yellow runway markers
5892+
--- * **1**: Sandy Shores Airfield yellow runway markers
5893+
--- * **2**: McKenzie Field yellow runway markers
5894+
--- * **6**: Vespucci Beach lifeguard building
5895+
--- * **7**: Top level zone of Alien Camp (Hippy Camp)
5896+
--- * **8**: Paleto Bay fire station drill tower
5897+
--- * **9** Land Act Dam tower
5898+
--- * **10** Pala Springs Aerial Tramway
5899+
--- * **11** Galileo Observatory power unit
5900+
--- * **12** Small zone (empty "interior") near Central Los Santos Medical Center
5901+
--- * **13** Richman Mansion grotto
5902+
--- * **14** 2 Alien Camp (Hippy Camp) circles
5903+
--- * **15** Fort Zancudo
5904+
--- @usage -- Enables Fort Zancudo on the map
5905+
--- SetMinimapComponent(15, true, 0
58975906
--- @hash [0x75A9A10948D1DEA6](https://docs.fivem.net/natives/?_0x75A9A10948D1DEA6)
58985907
--- @param componentID number (int)
58995908
--- @param toggle boolean
59005909
--- @param hudColor number (int)
5901-
--- @return any
5902-
--- @overload fun(componentID: number, toggle: boolean, hudColor: number): any
5910+
--- @return number
5911+
--- @overload fun(componentID: number, toggle: boolean, hudColor: number): number
59035912
function SetMinimapComponent(componentID, toggle, hudColor) end
59045913

59055914

docs-gen/native-interior.def.lua

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,6 @@ function UnkGetInteriorAtCoords(x, y, z, typeHash) end
805805

806806

807807
--- ```
808-
--- GET_INTERIOR_*
809-
---
810808
--- NativeDB Introduced: v1493
811809
--- ```
812810
---
@@ -816,4 +814,17 @@ function UnkGetInteriorAtCoords(x, y, z, typeHash) end
816814
--- @overload fun(interior: number): number
817815
function GetInteriorHeading(interior) end
818816

817+
818+
--- # New Name: GetInteriorHeading
819+
--- ```
820+
--- NativeDB Introduced: v1493
821+
--- ```
822+
---
823+
--- @hash [0xF49B58631D9E22D9](https://docs.fivem.net/natives/?_0xF49B58631D9E22D9)
824+
--- @param interior number (int)
825+
--- @return number
826+
--- @overload fun(interior: number): number
827+
--- @deprecated
828+
function GetInteriorHeading(interior) end
829+
819830

docs-gen/native-misc.def.lua

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -274,18 +274,40 @@ function AreStringsEqual(string1, string2) end
274274
function UpdateOnscreenKeyboard() end
275275

276276

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`.
278+
--- @usage RegisterCommand('weathertransition', function(source, args)
279+
--- -- Set the weather type to foggy so we can see the change
280+
--- SetWeatherTypeNowPersist("FOGGY")
281+
--- -- Clear the weather and run the transition
282+
--- local transitionTimeInMs = tonumber(args[1]) or 5000
283+
--- if transitionTimeInMs > 0 then
284+
--- ClearWeatherTypeNowPersistNetwork(transitionTimeInMs)
285+
--- end
286+
--- end, false
284287
--- @hash [0x0CF97F497FE7D048](https://docs.fivem.net/natives/?_0x0CF97F497FE7D048)
285-
--- @param p0 number (float)
288+
--- @param transitionTimeInMs number (int)
286289
--- @return void
287-
--- @overload fun(p0: number): void
288-
function N_0x0cf97f497fe7d048(p0) end
290+
--- @overload fun(transitionTimeInMs: number): void
291+
function ClearWeatherTypeNowPersistNetwork(transitionTimeInMs) end
292+
293+
294+
--- # New Name: ClearWeatherTypeNowPersistNetwork
295+
--- Clears the active weather type after a specific amount of time determined by `transitionTimeInMs`.
296+
--- @usage RegisterCommand('weathertransition', function(source, args)
297+
--- -- Set the weather type to foggy so we can see the change
298+
--- SetWeatherTypeNowPersist("FOGGY")
299+
--- -- Clear the weather and run the transition
300+
--- local transitionTimeInMs = tonumber(args[1]) or 5000
301+
--- if transitionTimeInMs > 0 then
302+
--- ClearWeatherTypeNowPersistNetwork(transitionTimeInMs)
303+
--- end
304+
--- end, false
305+
--- @hash [0x0CF97F497FE7D048](https://docs.fivem.net/natives/?_0x0CF97F497FE7D048)
306+
--- @param transitionTimeInMs number (int)
307+
--- @return void
308+
--- @overload fun(transitionTimeInMs: number): void
309+
--- @deprecated
310+
function N_0x0cf97f497fe7d048(transitionTimeInMs) end
289311

290312

291313
--- RegisterEnumToSave
@@ -5573,18 +5595,26 @@ function SlerpNearQuaternion(t, x, y, z, w, x1, y1, z1, w1) end
55735595
function N_0xf2f6a2fa49278625(t, x, y, z, w, x1, y1, z1, w1) end
55745596

55755597

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
5602+
--- SetCloudsAlpha(1.0)
5603+
--- en
55785604
--- @hash [0xF36199225D6D8C86](https://docs.fivem.net/natives/?_0xF36199225D6D8C86)
55795605
--- @param opacity number (float)
55805606
--- @return void
55815607
--- @overload fun(opacity: number): void
5582-
function SetCloudHatOpacity(opacity) end
5608+
function SetCloudsAlpha(opacity) end
55835609

55845610

5585-
--- # New Name: SetCloudHatOpacity
5586-
--- SetCloudHatOpacity
5587-
---
5611+
--- # New Name: SetCloudsAlpha
5612+
--- 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
5616+
--- SetCloudsAlpha(1.0)
5617+
--- en
55885618
--- @hash [0xF36199225D6D8C86](https://docs.fivem.net/natives/?_0xF36199225D6D8C86)
55895619
--- @param opacity number (float)
55905620
--- @return void
@@ -5593,6 +5623,21 @@ function SetCloudHatOpacity(opacity) end
55935623
function N_0xf36199225d6d8c86(opacity) end
55945624

55955625

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
5631+
--- SetCloudsAlpha(1.0)
5632+
--- en
5633+
--- @hash [0xF36199225D6D8C86](https://docs.fivem.net/natives/?_0xF36199225D6D8C86)
5634+
--- @param opacity number (float)
5635+
--- @return void
5636+
--- @overload fun(opacity: number): void
5637+
--- @deprecated
5638+
function SetCloudHatOpacity(opacity) end
5639+
5640+
55965641
--- Refer to [`SET_WEATHER_TYPE_NOW_PERSIST`](https://docs.fivem.net/natives/?_0xED712CA327900C8A) for weather types.
55975642
---
55985643
--- @hash [0xF3BBE884A14BB413](https://docs.fivem.net/natives/?_0xF3BBE884A14BB413)

docs-gen/native-player.def.lua

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3263,16 +3263,58 @@ function N_0xefd79fa81dfba9cb(player, distance) end
32633263
function ClearPlayerHasDamagedAtLeastOnePed(player) end
32643264

32653265

3266+
--- Violation types:
3267+
---
32663268
--- ```
3267-
--- Only 1 occurrence. p1 was 2.
3269+
--- enum eViolationType {
3270+
--- VT_PAVED_PEDESTRIAN_AREAS = 0,
3271+
--- VT_RUNNING_REDS,
3272+
--- VT_AGAINST_TRAFFIC
3273+
--- };
32683274
--- ```
3275+
---
3276+
--- Checks if a player is performing a certain type of traffic violation.
3277+
---
3278+
--- * Type 0: Checks if the player is driving outside designated road areas pedestrians would walk on (specifically paved sidewalks).
3279+
--- * Type 1: Checks if the player is running through reds, takes some time to return true.
3280+
--- * Type 2: Checks if the player is driving on the wrong side of the road (against traffic).
3281+
---
3282+
--- Used solely in "Al Di Napoli" with type 2 for a voiceline.
32693283
---
32703284
--- @hash [0xF10B44FD479D69F3](https://docs.fivem.net/natives/?_0xF10B44FD479D69F3)
32713285
--- @param player Player
3272-
--- @param p1 number (int)
3286+
--- @param type number (int)
32733287
--- @return boolean
3274-
--- @overload fun(player: Player, p1: number): boolean
3275-
function N_0xf10b44fd479d69f3(player, p1) end
3288+
--- @overload fun(player: Player, type: number): boolean
3289+
function IsPlayerDrivingDangerously(player, type) end
3290+
3291+
3292+
--- # New Name: IsPlayerDrivingDangerously
3293+
--- Violation types:
3294+
---
3295+
--- ```
3296+
--- enum eViolationType {
3297+
--- VT_PAVED_PEDESTRIAN_AREAS = 0,
3298+
--- VT_RUNNING_REDS,
3299+
--- VT_AGAINST_TRAFFIC
3300+
--- };
3301+
--- ```
3302+
---
3303+
--- Checks if a player is performing a certain type of traffic violation.
3304+
---
3305+
--- * Type 0: Checks if the player is driving outside designated road areas pedestrians would walk on (specifically paved sidewalks).
3306+
--- * Type 1: Checks if the player is running through reds, takes some time to return true.
3307+
--- * Type 2: Checks if the player is driving on the wrong side of the road (against traffic).
3308+
---
3309+
--- Used solely in "Al Di Napoli" with type 2 for a voiceline.
3310+
---
3311+
--- @hash [0xF10B44FD479D69F3](https://docs.fivem.net/natives/?_0xF10B44FD479D69F3)
3312+
--- @param player Player
3313+
--- @param type number (int)
3314+
--- @return boolean
3315+
--- @overload fun(player: Player, type: number): boolean
3316+
--- @deprecated
3317+
function N_0xf10b44fd479d69f3(player, type) end
32763318

32773319

32783320
--- ```

0 commit comments

Comments
 (0)