Skip to content

Commit a5d8ecf

Browse files
Release 2022-12-05
1 parent 33487b8 commit a5d8ecf

File tree

3 files changed

+183
-1
lines changed

3 files changed

+183
-1
lines changed

docs-gen/client-cfx.def.lua

Lines changed: 164 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ function SetVehicleXenonLightsCustomColor(vehicle, red, green, blue) end
172172
function SetManualShutdownLoadingScreenNui(manualShutdown) end
173173

174174

175+
--- GetVehicleDashboardFuel
176+
---
177+
--- @hash [0x19B0B2CE](https://docs.fivem.net/natives/?_0x19B0B2CE)
178+
---
179+
--- @return number
180+
--- @overload fun(): number
181+
function GetVehicleDashboardFuel() end
182+
183+
175184
--- Commits the backing pixels to the specified runtime texture.
176185
---
177186
--- @hash [0x19D81F4E](https://docs.fivem.net/natives/?_0x19D81F4E)
@@ -243,6 +252,15 @@ function GetVehicleClutch(vehicle) end
243252
function CreateRuntimeTxd(name) end
244253

245254

255+
--- GetVehicleDashboardOilTemp
256+
---
257+
--- @hash [0x1F5996AA](https://docs.fivem.net/natives/?_0x1F5996AA)
258+
---
259+
--- @return number
260+
--- @overload fun(): number
261+
function GetVehicleDashboardOilTemp() end
262+
263+
246264
--- SetVehicleHighGear
247265
---
248266
--- @hash [0x20B1B3E6](https://docs.fivem.net/natives/?_0x20B1B3E6)
@@ -715,6 +733,15 @@ function SetVehicleWheelRotationSpeed(vehicle, wheelIndex, speed) end
715733
function SetMillisecondsPerGameMinute(value) end
716734

717735

736+
--- GetVehicleDashboardOilPressure
737+
---
738+
--- @hash [0x3856D767](https://docs.fivem.net/natives/?_0x3856D767)
739+
---
740+
--- @return number
741+
--- @overload fun(): number
742+
function GetVehicleDashboardOilPressure() end
743+
744+
718745
--- This native is not implemented.
719746
---
720747
--- @hash [0x38D19210](https://docs.fivem.net/natives/?_0x38D19210)
@@ -1093,6 +1120,25 @@ function FindNextObject(findHandle, outEntity) end
10931120
function SetInteriorRoomExtents(interiorId, roomIndex, bbMinX, bbMinY, bbMinZ, bbMaxX, bbMaxY, bbMaxZ) end
10941121

10951122

1123+
--- Gets the state of the player vehicle's dashboard lights as a bit set
1124+
--- indicator_left = 1
1125+
--- indicator_right = 2
1126+
--- handbrakeLight = 4
1127+
--- engineLight = 8
1128+
--- ABSLight = 16
1129+
--- gasLight = 32
1130+
--- oilLight = 64
1131+
--- headlights = 128
1132+
--- highBeam = 256
1133+
--- batteryLight = 512
1134+
---
1135+
--- @hash [0x500FFE9D](https://docs.fivem.net/natives/?_0x500FFE9D)
1136+
---
1137+
--- @return number
1138+
--- @overload fun(): number
1139+
function GetVehicleDashboardLights() end
1140+
1141+
10961142
--- Sets variant of shader that will be used to draw entity outline.
10971143
---
10981144
--- Variants are:
@@ -1221,6 +1267,15 @@ function SetNuiFocus(hasFocus, hasCursor) end
12211267
function SendDuiMouseDown(duiObject, button) end
12221268

12231269

1270+
--- A getter for the recoil shake amplitude of a weapon.
1271+
---
1272+
--- @hash [0x5E1AF5F](https://docs.fivem.net/natives/?_0x5E1AF5F)
1273+
--- @param weaponHash Hash
1274+
--- @return number
1275+
--- @overload fun(weaponHash: Hash): number
1276+
function GetWeaponRecoilShakeAmplitude(weaponHash) end
1277+
1278+
12241279
--- Clears channels from the target list for the specified Mumble voice target ID.
12251280
---
12261281
--- @hash [0x5EA72E76](https://docs.fivem.net/natives/?_0x5EA72E76)
@@ -1388,6 +1443,15 @@ function IsBigmapFull() end
13881443
function SetRopeLengthChangeRate(rope, lengthChangeRate) end
13891444

13901445

1446+
--- GetPedMovementClipset
1447+
---
1448+
--- @hash [0x69E81E3D](https://docs.fivem.net/natives/?_0x69E81E3D)
1449+
--- @param ped Ped
1450+
--- @return number
1451+
--- @overload fun(ped: Ped): number
1452+
function GetPedMovementClipset(ped) end
1453+
1454+
13911455
--- This native sets the app id for the discord rich presence implementation.
13921456
---
13931457
--- @hash [0x6A02254D](https://docs.fivem.net/natives/?_0x6A02254D)
@@ -1411,6 +1475,15 @@ function SetDiscordAppId(appId) end
14111475
function SetMinimapOverlayDisplay(miniMap, x, y, xScale, yScale, alpha) end
14121476

14131477

1478+
--- GetVehicleDashboardTemp
1479+
---
1480+
--- @hash [0x6B6ADAFA](https://docs.fivem.net/natives/?_0x6B6ADAFA)
1481+
---
1482+
--- @return number
1483+
--- @overload fun(): number
1484+
function GetVehicleDashboardTemp() end
1485+
1486+
14141487
--- GetInteriorRoomFlag
14151488
--- @usage local playerPed = PlayerPedId()
14161489
--- local interiorId = GetInteriorFromEntity(playerPed)
@@ -1575,7 +1648,7 @@ function EnterCursorMode() end
15751648
function SendNuiMessage(jsonString) end
15761649

15771650

1578-
--- Creates a runtime texture from the specified file in the current resource.
1651+
--- Creates a runtime texture from the specified file in the current resource or a base64 data URL.
15791652
---
15801653
--- @hash [0x786D8BC3](https://docs.fivem.net/natives/?_0x786D8BC3)
15811654
--- @param txd number (long)
@@ -1651,6 +1724,16 @@ function IsDuiAvailable(duiObject) end
16511724
function GetRandomVehicleDensityMultiplier() end
16521725

16531726

1727+
--- Removes a dry volume from the game session.
1728+
--- See CREATE_DRY_VOLUME for more info
1729+
---
1730+
--- @hash [0x7BCAA6E7](https://docs.fivem.net/natives/?_0x7BCAA6E7)
1731+
--- @param handle number (int)
1732+
--- @return void
1733+
--- @overload fun(handle: number): void
1734+
function RemoveDryVolume(handle) end
1735+
1736+
16541737
--- Sets the player's rich presence detail state for social platform providers to a specified string.
16551738
---
16561739
--- @hash [0x7BDCBD45](https://docs.fivem.net/natives/?_0x7BDCBD45)
@@ -1660,6 +1743,23 @@ function GetRandomVehicleDensityMultiplier() end
16601743
function SetRichPresence(presenceState) end
16611744

16621745

1746+
--- Returns a list of decorations applied to a ped.
1747+
---
1748+
--- The data returned adheres to the following layout:
1749+
---
1750+
--- ```
1751+
--- [ [ collectionHash1, overlayHash1 ], ..., [c ollectionHashN, overlayHashN ] ]
1752+
--- ```
1753+
---
1754+
--- This command will return undefined data if invoked on a remote player ped.
1755+
---
1756+
--- @hash [0x7CCE1163](https://docs.fivem.net/natives/?_0x7CCE1163)
1757+
--- @param ped Ped
1758+
--- @return table
1759+
--- @overload fun(ped: Ped): table
1760+
function GetPedDecorations(ped) end
1761+
1762+
16631763
--- GetVehicleLightMultiplier
16641764
---
16651765
--- @hash [0x7E6E219C](https://docs.fivem.net/natives/?_0x7E6E219C)
@@ -1945,6 +2045,15 @@ function SetHandlingInt(vehicle, class_, fieldName, value) end
19452045
function SendLoadingScreenMessage(jsonString) end
19462046

19472047

2048+
--- GetVehicleDashboardWaterTemp
2049+
---
2050+
--- @hash [0x8E3B3E42](https://docs.fivem.net/natives/?_0x8E3B3E42)
2051+
---
2052+
--- @return number
2053+
--- @overload fun(): number
2054+
function GetVehicleDashboardWaterTemp() end
2055+
2056+
19482057
--- Equivalent of [START_FIND_KVP](https://docs.fivem.net/natives/?_0xDD379006), but for another resource than the current one.
19492058
--- @usage local kvpHandle = StartFindExternalKvp('drugs', 'mollis:')
19502059
---
@@ -2100,6 +2209,16 @@ function SetTextChatEnabled(enabled) end
21002209
function IsNuiFocused() end
21012210

21022211

2212+
--- A setter for the recoil shake amplitude of a weapon.
2213+
---
2214+
--- @hash [0x9864312F](https://docs.fivem.net/natives/?_0x9864312F)
2215+
--- @param weaponHash Hash
2216+
--- @param amplitude number (float)
2217+
--- @return void
2218+
--- @overload fun(weaponHash: Hash, amplitude: number): void
2219+
function SetWeaponRecoilShakeAmplitude(weaponHash, amplitude) end
2220+
2221+
21032222
--- A getter for [MODIFY_VEHICLE_TOP_SPEED](https://docs.fivem.net/natives/?_0x93A3996368C94158). Returns -1.0 if a modifier is not set.
21042223
---
21052224
--- @hash [0x998B7FEE](https://docs.fivem.net/natives/?_0x998B7FEE)
@@ -3287,6 +3406,15 @@ function EndFindObject(findHandle) end
32873406
function ResetVehiclePedsCanStandOnTopFlag(vehicle) end
32883407

32893408

3409+
--- GetVehicleDashboardBoost
3410+
---
3411+
--- @hash [0xDFFABA2A](https://docs.fivem.net/natives/?_0xDFFABA2A)
3412+
---
3413+
--- @return number
3414+
--- @overload fun(): number
3415+
function GetVehicleDashboardBoost() end
3416+
3417+
32903418
--- GetTrainCurrentTrackNode
32913419
---
32923420
--- @hash [0xE015E854](https://docs.fivem.net/natives/?_0xE015E854)
@@ -3475,6 +3603,23 @@ function GetVehicleWheelRotationSpeed(vehicle, wheelIndex) end
34753603
function SetVehicleWheelieState(vehicle, state) end
34763604

34773605

3606+
--- Creates a volume where water effects do not apply.
3607+
--- Useful for preventing water collisions from flooding areas underneath them.
3608+
--- This has no effect on waterquads, only water created from drawables and collisions.
3609+
--- Don't create volumes when your local ped is swimming (e.g. use IS_PED_SWIMMING in your scripts before you call this)
3610+
---
3611+
--- @hash [0xEB1C6DD](https://docs.fivem.net/natives/?_0xEB1C6DD)
3612+
--- @param xMin number (float)
3613+
--- @param yMin number (float)
3614+
--- @param zMin number (float)
3615+
--- @param xMax number (float)
3616+
--- @param yMax number (float)
3617+
--- @param zMax number (float)
3618+
--- @return number
3619+
--- @overload fun(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number): number
3620+
function CreateDryVolume(xMin, yMin, zMin, xMax, yMax, zMax) end
3621+
3622+
34783623
--- Draws a gizmo. This function supports SDK infrastructure and is not intended to be used directly from your code.
34793624
---
34803625
--- This should be used from JavaScript or another language supporting mutable buffers like ArrayBuffer.
@@ -3705,6 +3850,15 @@ function GetInteriorPortalCornerPosition(interiorId, portalIndex, cornerIndex) e
37053850
function IsVehiclePreviouslyOwnedByPlayer(vehicle) end
37063851

37073852

3853+
--- GetVehicleDashboardRpm
3854+
---
3855+
--- @hash [0xF9716A11](https://docs.fivem.net/natives/?_0xF9716A11)
3856+
---
3857+
--- @return number
3858+
--- @overload fun(): number
3859+
function GetVehicleDashboardRpm() end
3860+
3861+
37083862
--- IsVehicleNeedsToBeHotwired
37093863
---
37103864
--- @hash [0xF9933BF4](https://docs.fivem.net/natives/?_0xF9933BF4)
@@ -3750,6 +3904,15 @@ function GetInteriorRoomExtents(interiorId, roomIndex) end
37503904
function FindFirstObject(outEntity) end
37513905

37523906

3907+
--- GetVehicleDashboardVacuum
3908+
---
3909+
--- @hash [0xFABE67A9](https://docs.fivem.net/natives/?_0xFABE67A9)
3910+
---
3911+
--- @return number
3912+
--- @overload fun(): number
3913+
function GetVehicleDashboardVacuum() end
3914+
3915+
37533916
--- FindFirstPed
37543917
---
37553918
--- @hash [0xFB012961](https://docs.fivem.net/natives/?_0xFB012961)

docs-gen/server-cfx.def.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,24 @@ function SetPlayerRoutingBucket(playerSrc, bucket) end
364364
function GetAllObjects() end
365365

366366

367+
--- Equivalent to CREATE_VEHICLE, but it uses 'server setter' logic (like the former CREATE_AUTOMOBILE) as a workaround for
368+
--- reliability concerns regarding entity creation RPC.
369+
---
370+
--- Unlike CREATE_AUTOMOBILE, this supports other vehicle types as well.
371+
--- @usage local heli = CreateVehicleServerSetter(`seasparrow`, 'heli', GetEntityCoords(GetPlayerPed(GetPlayers()[1])) + vector3(0, 0, 15), 0.0)
372+
--- print(GetEntityCoords(heli)) -- should return correct coordinate
373+
--- @hash [0x6AE51D4B](https://docs.fivem.net/natives/?_0x6AE51D4B)
374+
--- @param modelHash Hash
375+
--- @param type string (char*)
376+
--- @param x number (float)
377+
--- @param y number (float)
378+
--- @param z number (float)
379+
--- @param heading number (float)
380+
--- @return Vehicle
381+
--- @overload fun(modelHash: Hash, type: string, x: number, y: number, z: number, heading: number): Vehicle
382+
function CreateVehicleServerSetter(modelHash, type, x, y, z, heading) end
383+
384+
367385
--- PerformHttpRequestInternalEx
368386
---
369387
--- @hash [0x6B171E87](https://docs.fivem.net/natives/?_0x6B171E87)

docs-gen/shared-cfx.def.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ function IsAceAllowed(object) end
315315
--- * 1311
316316
--- * 1355
317317
--- * 1436
318+
--- * 1491
318319
--- * LibertyM
319320
--- * 43
320321
--- * FXServer

0 commit comments

Comments
 (0)