@@ -169,6 +169,17 @@ function SetPedCollectionPreloadPropData(ped, anchorPoint, collection, propIndex
169
169
function FindFirstVehicle (outEntity ) end
170
170
171
171
172
+ --- Gets the coordinates of a specific track node.
173
+ ---
174
+ --- @hash [0x1628548E](https://docs.fivem.net/natives/?_0x1628548E)
175
+ --- @param trackIndex number (int )
176
+ --- @param trackNode number (int )
177
+ --- @param coords Vector3 (Vector3* )
178
+ --- @return boolean
179
+ --- @overload fun ( trackIndex : number , trackNode : number ): boolean , Vector3
180
+ function GetTrackNodeCoords (trackIndex , trackNode , coords ) end
181
+
182
+
172
183
--- Returns the NUI window handle for a specified DUI browser object.
173
184
---
174
185
--- @hash [0x1655D41D](https://docs.fivem.net/natives/?_0x1655D41D)
@@ -707,6 +718,15 @@ function GetPedPropGlobalIndexFromCollection(ped, anchorPoint, collection, propI
707
718
function SendDuiMouseWheel (duiObject , deltaY , deltaX ) end
708
719
709
720
721
+ --- Adds the given model name hash to the list of valid models for the player ped's parachute pack.
722
+ ---
723
+ --- @hash [0x2E86DEA5](https://docs.fivem.net/natives/?_0x2E86DEA5)
724
+ --- @param modelNameHash number (int )
725
+ --- @return void
726
+ --- @overload fun ( modelNameHash : number ): void
727
+ function AddAuthorizedParachutePackModel (modelNameHash ) end
728
+
729
+
710
730
--- GetVehicleWheelYRotation
711
731
---
712
732
--- @hash [0x2EA4AFFE](https://docs.fivem.net/natives/?_0x2EA4AFFE)
@@ -963,6 +983,19 @@ function SetDiscordRichPresenceAssetSmallText(text) end
963
983
function SetVehicleWheelRotationSpeed (vehicle , wheelIndex , speed ) end
964
984
965
985
986
+ --- Registers a track junction that when enabled will cause a train on the defined trackIndex, node and direction to change its current track index and begin traveling on the new node
987
+ ---
988
+ --- @hash [0x35F743B5](https://docs.fivem.net/natives/?_0x35F743B5)
989
+ --- @param trackIndex number (int )
990
+ --- @param trackNode number (int )
991
+ --- @param newIndex number (int )
992
+ --- @param newNode number (int )
993
+ --- @param direction boolean
994
+ --- @return number
995
+ --- @overload fun ( trackIndex : number , trackNode : number , newIndex : number , newNode : number , direction : boolean ): number
996
+ function RegisterTrackJunction (trackIndex , trackNode , newIndex , newNode , direction ) end
997
+
998
+
966
999
--- Overrides how many real ms are equal to one game minute.
967
1000
--- A setter for [`GetMillisecondsPerGameMinute`](https://docs.fivem.net/natives/?_0x2F8B4D1C595B11DB).
968
1001
---
@@ -1559,6 +1592,15 @@ function GetPlayerServerId(player) end
1559
1592
function FindNextObject (findHandle , outEntity ) end
1560
1593
1561
1594
1595
+ --- Removes the specified track junction.
1596
+ ---
1597
+ --- @hash [0x4F3D2B2A](https://docs.fivem.net/natives/?_0x4F3D2B2A)
1598
+ --- @param junctionIndex number (int )
1599
+ --- @return boolean
1600
+ --- @overload fun ( junctionIndex : number ): boolean
1601
+ function RemoveTrackJunction (junctionIndex ) end
1602
+
1603
+
1562
1604
--- SetInteriorRoomExtents
1563
1605
--- @usage local playerPed = PlayerPedId()
1564
1606
--- local interiorId = GetInteriorFromEntity(playerPed)
@@ -1633,6 +1675,16 @@ function SetWaterQuadType(waterQuad, type) end
1633
1675
function SetEntityDrawOutlineShader (shader ) end
1634
1676
1635
1677
1678
+ --- Sets the state of a track junction.
1679
+ ---
1680
+ --- @hash [0x537B449D](https://docs.fivem.net/natives/?_0x537B449D)
1681
+ --- @param junctionIndex number (int )
1682
+ --- @param state boolean
1683
+ --- @return boolean
1684
+ --- @overload fun ( junctionIndex : number , state : boolean ): boolean
1685
+ function SetTrackJunctionActive (junctionIndex , state ) end
1686
+
1687
+
1636
1688
--- Sets vehicle's wheels' size (size is the same for all the wheels, cannot get/set specific wheel of vehicle).
1637
1689
--- Only works on non-default wheels.
1638
1690
--- Returns whether change was successful (can be false if trying to set size for non-default wheels).
@@ -1736,6 +1788,16 @@ function GetFuelConsumptionRateMultiplier() end
1736
1788
function SetInteriorPortalRoomTo (interiorId , portalIndex , roomTo ) end
1737
1789
1738
1790
1791
+ --- Get all track nodes and their track ids within the radius of the specified coordinates.
1792
+ ---
1793
+ --- @hash [0x59FC24A7](https://docs.fivem.net/natives/?_0x59FC24A7)
1794
+ --- @param position Vector3
1795
+ --- @param radius number (float )
1796
+ --- @return table
1797
+ --- @overload fun ( position : Vector3 , radius : number ): table
1798
+ function GetClosestTrackNodes (position , radius ) end
1799
+
1800
+
1739
1801
--- GetInteriorRotation
1740
1802
--- @usage local playerPed = PlayerPedId()
1741
1803
--- local interiorId = GetInteriorFromEntity(playerPed)
@@ -1939,6 +2001,17 @@ function SetWaterQuadLevel(waterQuad, level) end
1939
2001
function MumbleSetAudioInputIntent (intentHash ) end
1940
2002
1941
2003
2004
+ --- This native is a setter for [`GET_VEHICLE_HAS_FLAG`](https://docs.fivem.net/natives/?_0xD85C9F57).
2005
+ ---
2006
+ --- @hash [0x63AE1A34](https://docs.fivem.net/natives/?_0x63AE1A34)
2007
+ --- @param vehicle Vehicle
2008
+ --- @param flagIndex number (int )
2009
+ --- @param value boolean
2010
+ --- @return boolean
2011
+ --- @overload fun ( vehicle : Vehicle , flagIndex : number , value : boolean ): boolean
2012
+ function SetVehicleFlag (vehicle , flagIndex , value ) end
2013
+
2014
+
1942
2015
--- A getter for [SET_WEAPON_ANIMATION_OVERRIDE](https://docs.fivem.net/natives/?_0x1055AC3A667F09D9).
1943
2016
--- @usage local weaponAnimation = GetWeaponAnimationOverride(PlayerPedId()
1944
2017
--- @hash [0x63ED2E7](https://docs.fivem.net/natives/?_0x63ED2E7)
@@ -2927,6 +3000,15 @@ function MumbleRemoveVoiceTargetPlayer(targetId, player) end
2927
3000
function SetVehicleCurrentGear (vehicle , gear ) end
2928
3001
2929
3002
3003
+ --- Gets the specified tracks node count.
3004
+ ---
3005
+ --- @hash [0x896A0C11](https://docs.fivem.net/natives/?_0x896A0C11)
3006
+ --- @param trackIndex number (int )
3007
+ --- @return number
3008
+ --- @overload fun ( trackIndex : number ): number
3009
+ function GetTrackNodeCount (trackIndex ) end
3010
+
3011
+
2930
3012
--- Allows StaticEmitter's without a linked entity to make use of environment features like occlusion and reverb even if they are located higher than 20.0 units above any static collision inside interiors.
2931
3013
---
2932
3014
--- This native allows you to extend the probe range up to 150.0 units.
@@ -2960,6 +3042,15 @@ function SetEmitterProbeLength(probeLength) end
2960
3042
function SetHandlingInt (vehicle , class_ , fieldName , value ) end
2961
3043
2962
3044
3045
+ --- Adds the given model name hash to the list of valid models for the player ped's parachute.
3046
+ ---
3047
+ --- @hash [0x8AC7AE9](https://docs.fivem.net/natives/?_0x8AC7AE9)
3048
+ --- @param modelNameHash number (int )
3049
+ --- @return void
3050
+ --- @overload fun ( modelNameHash : number ): void
3051
+ function AddAuthorizedParachuteModel (modelNameHash ) end
3052
+
3053
+
2963
3054
--- Sends a message to the `loadingScreen` NUI frame, which contains the HTML page referenced in `loadscreen` resources.
2964
3055
---
2965
3056
--- @hash [0x8BBE6CC0](https://docs.fivem.net/natives/?_0x8BBE6CC0)
@@ -4836,6 +4927,18 @@ function GetAllVehicleModels() end
4836
4927
function RegisterKeyMapping (commandString , description , defaultMapper , defaultParameter ) end
4837
4928
4838
4929
4930
+ --- **Note**: Flags are not the same based on your `gamebuild`. Please see [here](https://docs.fivem.net/docs/game-references/vehicle-references/vehicle-flags) to see a complete list of all vehicle flags.
4931
+ ---
4932
+ --- Get vehicle.meta flag by index. Useful examples include `FLAG_LAW_ENFORCEMENT` (31), `FLAG_RICH_CAR` (36), `FLAG_IS_ELECTRIC` (43), `FLAG_IS_OFFROAD_VEHICLE` (48).
4933
+ ---
4934
+ --- @hash [0xD85C9F57](https://docs.fivem.net/natives/?_0xD85C9F57)
4935
+ --- @param vehicle Vehicle
4936
+ --- @param flagIndex number (int )
4937
+ --- @return boolean
4938
+ --- @overload fun ( vehicle : Vehicle , flagIndex : number ): boolean
4939
+ function GetVehicleHasFlag (vehicle , flagIndex ) end
4940
+
4941
+
4839
4942
--- MumbleSetActive
4840
4943
---
4841
4944
--- @hash [0xD932A3F3](https://docs.fivem.net/natives/?_0xD932A3F3)
@@ -5102,6 +5205,8 @@ function ForceSnowPass(enabled) end
5102
5205
5103
5206
5104
5207
--- Changes the Mumble server address to connect to, and reconnects to the new address.
5208
+ ---
5209
+ --- Setting the address to an empty string and the port to -1 will reset to the built in FXServer Mumble Implementation.
5105
5210
---
5106
5211
--- @hash [0xE6EB2CD8](https://docs.fivem.net/natives/?_0xE6EB2CD8)
5107
5212
--- @param address string (char* )
@@ -5437,6 +5542,34 @@ function GetVehicleDensityMultiplier() end
5437
5542
function GetVehicleHighGear (vehicle ) end
5438
5543
5439
5544
5545
+ --- Registers a custom rope data with the game. For guidance on what these values should be use common:/data/ropedata.xml as a reference.
5546
+ --- Returns a rope type which can be passed into [ADD_ROPE](?\_0xE832D760399EB220) to use a custom rope design.
5547
+ --- Once a rope data is registered it can be used indefinitely and you should take caution not too register too many as to exceed the games limit.
5548
+ --- @usage -- Create a thick steel cable rope above the players head
5549
+ --- local ropeType = RegisterRopeData(6, 0.15, "steel_cable", "steel_cable_n", 1.0, 1.0, 8.775, 0.97, 30.0, 0.25, 1.775, 0x00FFFF00)
5550
+ --- if ropeType ~= -1 then
5551
+ --- local coords = GetEntityCoords(PlayerPedId()) + vector3(0.0, 0.0, 5.0)
5552
+ --- AddRope(coords.x, coords.y, coords.z, 0.0, 0.0, 0.0, 25.0, ropeType, 10.0, 0.0, 1.0, false, false, false, 1.0, false, 0)
5553
+ --- RopeLoadTextures()
5554
+ --- en
5555
+ --- @hash [0xF213AE8D](https://docs.fivem.net/natives/?_0xF213AE8D)
5556
+ --- @param numSections number (int )
5557
+ --- @param radius number (float )
5558
+ --- @param diffuseTextureName string (char* )
5559
+ --- @param normalMapName string (char* )
5560
+ --- @param distanceMappingScale number (float )
5561
+ --- @param uvScaleX number (float )
5562
+ --- @param uvScaleY number (float )
5563
+ --- @param specularFresnel number (float )
5564
+ --- @param specularFalloff number (float )
5565
+ --- @param specularIntensity number (float )
5566
+ --- @param bumpiness number (float )
5567
+ --- @param color number (int )
5568
+ --- @return number
5569
+ --- @overload fun ( numSections : number , radius : number , diffuseTextureName : string , normalMapName : string , distanceMappingScale : number , uvScaleX : number , uvScaleY : number , specularFresnel : number , specularFalloff : number , specularIntensity : number , bumpiness : number , color : number ): number
5570
+ function RegisterRopeData (numSections , radius , diffuseTextureName , normalMapName , distanceMappingScale , uvScaleX , uvScaleY , specularFresnel , specularFalloff , specularIntensity , bumpiness , color ) end
5571
+
5572
+
5440
5573
--- Unlike [GET_PLAYER_INVINCIBLE](https://docs.fivem.net/natives/?_0xB721981B2B939E07) this native gets both [SET_PLAYER_INVINCIBLE_KEEP_RAGDOLL_ENABLED](https://docs.fivem.net/natives/?_0x6BC97F4F4BB3C04B) and [SET_PLAYER_INVINCIBLE](https://docs.fivem.net/natives/?_0x239528EACDC3E7DE) invincibility state.
5441
5574
---
5442
5575
--- @hash [0xF2E3912B](https://docs.fivem.net/natives/?_0xF2E3912B)
@@ -5864,6 +5997,37 @@ function CreateRuntimeTexture(txd, txn, width, height) end
5864
5997
function GetPedCollectionName (ped , index ) end
5865
5998
5866
5999
6000
+ --- Allows drawing advanced light effects, known as coronas, which support flares, volumetric lighting, and customizable glow properties.
6001
+ --- @usage local pedCoords = GetEntityCoords(PlayerPedId())
6002
+ --- Citizen.CreateThread(function()
6003
+ --- while true do
6004
+ --- DrawCorona(pedCoords.x, pedCoords.y, pedCoords.z, 5.0, 255, 255, 255, 255, 4.0, 0.2, pedCoords.x, pedCoords.y, pedCoords.z, 1.0, 0.0, 90.0, 2)
6005
+ --- Wait(0)
6006
+ --- end
6007
+ --- end
6008
+ --- @hash [0xFF44780E](https://docs.fivem.net/natives/?_0xFF44780E)
6009
+ --- @param posX number (float )
6010
+ --- @param posY number (float )
6011
+ --- @param posZ number (float )
6012
+ --- @param size number (float )
6013
+ --- @param red number (int )
6014
+ --- @param green number (int )
6015
+ --- @param blue number (int )
6016
+ --- @param alpha number (int )
6017
+ --- @param intensity number (float )
6018
+ --- @param zBias number (float )
6019
+ --- @param dirX number (float )
6020
+ --- @param dirY number (float )
6021
+ --- @param dirZ number (float )
6022
+ --- @param viewThreshold number (float )
6023
+ --- @param innerAngle number (float )
6024
+ --- @param outerAngle number (float )
6025
+ --- @param flags number (int )
6026
+ --- @return void
6027
+ --- @overload fun ( posX : number , posY : number , posZ : number , size : number , red : number , green : number , blue : number , alpha : number , intensity : number , zBias : number , dirX : number , dirY : number , dirZ : number , viewThreshold : number , innerAngle : number , outerAngle : number , flags : number ): void
6028
+ function DrawCorona (posX , posY , posZ , size , red , green , blue , alpha , intensity , zBias , dirX , dirY , dirZ , viewThreshold , innerAngle , outerAngle , flags ) end
6029
+
6030
+
5867
6031
--- GetCalmingQuadBounds
5868
6032
--- @usage local success, minX, minY, maxX, maxY = GetCalmingQuadBounds(1
5869
6033
--- @hash [0xFF60E63](https://docs.fivem.net/natives/?_0xFF60E63)
0 commit comments