Skip to content

Commit 0172b9c

Browse files
Release 2025-03-17
1 parent cf5a159 commit 0172b9c

File tree

3 files changed

+212
-1
lines changed

3 files changed

+212
-1
lines changed

docs-gen/client-cfx.def.lua

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@ function SetPedCollectionPreloadPropData(ped, anchorPoint, collection, propIndex
169169
function FindFirstVehicle(outEntity) end
170170

171171

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+
172183
--- Returns the NUI window handle for a specified DUI browser object.
173184
---
174185
--- @hash [0x1655D41D](https://docs.fivem.net/natives/?_0x1655D41D)
@@ -707,6 +718,15 @@ function GetPedPropGlobalIndexFromCollection(ped, anchorPoint, collection, propI
707718
function SendDuiMouseWheel(duiObject, deltaY, deltaX) end
708719

709720

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+
710730
--- GetVehicleWheelYRotation
711731
---
712732
--- @hash [0x2EA4AFFE](https://docs.fivem.net/natives/?_0x2EA4AFFE)
@@ -963,6 +983,19 @@ function SetDiscordRichPresenceAssetSmallText(text) end
963983
function SetVehicleWheelRotationSpeed(vehicle, wheelIndex, speed) end
964984

965985

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+
966999
--- Overrides how many real ms are equal to one game minute.
9671000
--- A setter for [`GetMillisecondsPerGameMinute`](https://docs.fivem.net/natives/?_0x2F8B4D1C595B11DB).
9681001
---
@@ -1559,6 +1592,15 @@ function GetPlayerServerId(player) end
15591592
function FindNextObject(findHandle, outEntity) end
15601593

15611594

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+
15621604
--- SetInteriorRoomExtents
15631605
--- @usage local playerPed = PlayerPedId()
15641606
--- local interiorId = GetInteriorFromEntity(playerPed)
@@ -1633,6 +1675,16 @@ function SetWaterQuadType(waterQuad, type) end
16331675
function SetEntityDrawOutlineShader(shader) end
16341676

16351677

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+
16361688
--- Sets vehicle's wheels' size (size is the same for all the wheels, cannot get/set specific wheel of vehicle).
16371689
--- Only works on non-default wheels.
16381690
--- Returns whether change was successful (can be false if trying to set size for non-default wheels).
@@ -1736,6 +1788,16 @@ function GetFuelConsumptionRateMultiplier() end
17361788
function SetInteriorPortalRoomTo(interiorId, portalIndex, roomTo) end
17371789

17381790

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+
17391801
--- GetInteriorRotation
17401802
--- @usage local playerPed = PlayerPedId()
17411803
--- local interiorId = GetInteriorFromEntity(playerPed)
@@ -1939,6 +2001,17 @@ function SetWaterQuadLevel(waterQuad, level) end
19392001
function MumbleSetAudioInputIntent(intentHash) end
19402002

19412003

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+
19422015
--- A getter for [SET_WEAPON_ANIMATION_OVERRIDE](https://docs.fivem.net/natives/?_0x1055AC3A667F09D9).
19432016
--- @usage local weaponAnimation = GetWeaponAnimationOverride(PlayerPedId()
19442017
--- @hash [0x63ED2E7](https://docs.fivem.net/natives/?_0x63ED2E7)
@@ -2927,6 +3000,15 @@ function MumbleRemoveVoiceTargetPlayer(targetId, player) end
29273000
function SetVehicleCurrentGear(vehicle, gear) end
29283001

29293002

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+
29303012
--- 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.
29313013
---
29323014
--- This native allows you to extend the probe range up to 150.0 units.
@@ -2960,6 +3042,15 @@ function SetEmitterProbeLength(probeLength) end
29603042
function SetHandlingInt(vehicle, class_, fieldName, value) end
29613043

29623044

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+
29633054
--- Sends a message to the `loadingScreen` NUI frame, which contains the HTML page referenced in `loadscreen` resources.
29643055
---
29653056
--- @hash [0x8BBE6CC0](https://docs.fivem.net/natives/?_0x8BBE6CC0)
@@ -4836,6 +4927,18 @@ function GetAllVehicleModels() end
48364927
function RegisterKeyMapping(commandString, description, defaultMapper, defaultParameter) end
48374928

48384929

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+
48394942
--- MumbleSetActive
48404943
---
48414944
--- @hash [0xD932A3F3](https://docs.fivem.net/natives/?_0xD932A3F3)
@@ -5102,6 +5205,8 @@ function ForceSnowPass(enabled) end
51025205

51035206

51045207
--- 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.
51055210
---
51065211
--- @hash [0xE6EB2CD8](https://docs.fivem.net/natives/?_0xE6EB2CD8)
51075212
--- @param address string (char*)
@@ -5437,6 +5542,34 @@ function GetVehicleDensityMultiplier() end
54375542
function GetVehicleHighGear(vehicle) end
54385543

54395544

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+
54405573
--- 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.
54415574
---
54425575
--- @hash [0xF2E3912B](https://docs.fivem.net/natives/?_0xF2E3912B)
@@ -5864,6 +5997,37 @@ function CreateRuntimeTexture(txd, txn, width, height) end
58645997
function GetPedCollectionName(ped, index) end
58655998

58665999

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+
58676031
--- GetCalmingQuadBounds
58686032
--- @usage local success, minX, minY, maxX, maxY = GetCalmingQuadBounds(1
58696033
--- @hash [0xFF60E63](https://docs.fivem.net/natives/?_0xFF60E63)

docs-gen/server-cfx.def.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ function TempBanPlayer(playerSrc, reason) end
110110
function NetworkGetFirstEntityOwner(entity) end
111111

112112

113+
--- IsPlayerInFreeCamMode
114+
---
115+
--- @hash [0x1F14F2AC](https://docs.fivem.net/natives/?_0x1F14F2AC)
116+
--- @param playerSrc string (char*)
117+
--- @return boolean
118+
--- @overload fun(playerSrc: string): boolean
119+
function IsPlayerInFreeCamMode(playerSrc) end
120+
121+
113122
--- StopResource
114123
---
115124
--- @hash [0x21783161](https://docs.fivem.net/natives/?_0x21783161)
@@ -435,6 +444,15 @@ function GetPlayerToken(playerSrc, index) end
435444
function GetVehicleRadioStationIndex(vehicle) end
436445

437446

447+
--- Gets the focus position (i.e. the position of the active camera in the game world) of a player.
448+
---
449+
--- @hash [0x586F80FF](https://docs.fivem.net/natives/?_0x586F80FF)
450+
--- @param playerSrc string (char*)
451+
--- @return Vector3
452+
--- @overload fun(playerSrc: string): Vector3
453+
function GetPlayerFocusPos(playerSrc) end
454+
455+
438456
--- GetHostId
439457
---
440458
--- @hash [0x5F70F5A3](https://docs.fivem.net/natives/?_0x5F70F5A3)

docs-gen/shared-cfx.def.lua

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,31 @@ function GetConvarInt(varName, default_) end
499499
function GetResourceMetadata(resourceName, metadataKey, index) end
500500

501501

502+
--- Returns all commands registered by the specified resource.
503+
--- The data returned adheres to the following layout:
504+
---
505+
--- ```
506+
--- [
507+
--- {
508+
--- "name": "cmdlist",
509+
--- "resource": "example_resource",
510+
--- "arity" = -1,
511+
--- },
512+
--- {
513+
--- "name": "command1"
514+
--- "resource": "example_resource2",
515+
--- "arity" = -1,
516+
--- }
517+
--- ]
518+
--- ```
519+
---
520+
--- @hash [0x97628584](https://docs.fivem.net/natives/?_0x97628584)
521+
--- @param resource string (char*)
522+
--- @return table
523+
--- @overload fun(resource: string): table
524+
function GetResourceCommands(resource) end
525+
526+
502527
--- A getter for [\_SET_PLAYER_WEAPON_DEFENSE_MODIFIER\_2](https://docs.fivem.net/natives/?_0xBCFDE9EDE4CF27DC).
503528
---
504529
--- @hash [0x986B65FF](https://docs.fivem.net/natives/?_0x986B65FF)
@@ -673,10 +698,14 @@ function RemoveStateBagChangeHandler(cookie) end
673698
--- ```
674699
--- [
675700
--- {
676-
--- "name": "cmdlist"
701+
--- "name": "cmdlist",
702+
--- "resource": "resource",
703+
--- "arity" = -1,
677704
--- },
678705
--- {
679706
--- "name": "command1"
707+
--- "resource": "resource_2",
708+
--- "arity" = -1,
680709
--- }
681710
--- ]
682711
--- ```

0 commit comments

Comments
 (0)