@@ -406,6 +406,20 @@ function ClearVehicleXenonLightsCustomColor(vehicle) end
406406function AddTextEntryByHash (entryKey , entryText ) end
407407
408408
409+ --- Replaces the pixel data in a runtime texture with the image data from a file in the current resource, or a data URL.
410+ ---
411+ --- If the bitmap is a different size compared to the existing texture, it will be resampled.
412+ ---
413+ --- This command may end up executed asynchronously, and only update the texture data at a later time.
414+ ---
415+ --- @hash [0x28FC4ECB](https://docs.fivem.net/natives/?_0x28FC4ECB)
416+ --- @param tex number (long )
417+ --- @param fileName string (char* )
418+ --- @return boolean
419+ --- @overload fun ( tex : number , fileName : string ): boolean
420+ function SetRuntimeTextureImage (tex , fileName ) end
421+
422+
409423--- SetInteriorPortalRoomFrom
410424--- @usage local playerPed = PlayerPedId()
411425--- local interiorId = GetInteriorFromEntity(playerPed)
@@ -1696,6 +1710,15 @@ function GetPlayerVehicleDamageModifier(playerId) end
16961710function SetDefaultVehicleNumberPlateTextPattern (plateIndex , pattern ) end
16971711
16981712
1713+ --- Restores an overridden ped model personality type to the default value.
1714+ ---
1715+ --- @hash [0x79A12861](https://docs.fivem.net/natives/?_0x79A12861)
1716+ --- @param modelHash Hash
1717+ --- @return void
1718+ --- @overload fun ( modelHash : Hash ): void
1719+ function ResetPedModelPersonality (modelHash ) end
1720+
1721+
16991722--- Sets whether all tags should group (normal game behavior) or should remain independent and above each ped's respective head when in a vehicle.
17001723---
17011724--- @hash [0x7A27BC93](https://docs.fivem.net/natives/?_0x7A27BC93)
@@ -1934,6 +1957,15 @@ function MumbleGetTalkerProximity() end
19341957function MumbleClearVoiceTarget (targetId ) end
19351958
19361959
1960+ --- Sets whether or not ownership checks should be performed while trying to stow a carriable on a hunting wagon.
1961+ ---
1962+ --- @hash [0x85A10FFD](https://docs.fivem.net/natives/?_0x85A10FFD)
1963+ --- @param ignore boolean
1964+ --- @return void
1965+ --- @overload fun ( ignore : boolean ): void
1966+ function SetIgnoreVehicleOwnershipForStowing (ignore ) end
1967+
1968+
19371969--- Sets the traction vector length of a wheel.
19381970--- Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
19391971---
@@ -2518,6 +2550,16 @@ function RemoveReplaceTexture(origTxd, origTxn) end
25182550function RegisterRawNuiCallback (callbackType , callback ) end
25192551
25202552
2553+ --- Disables the game's world horizon lods rendering (see `farlods.#dd`).
2554+ --- Using the island hopper natives might also affect this state.
2555+ ---
2556+ --- @hash [0xA9C92CDC](https://docs.fivem.net/natives/?_0xA9C92CDC)
2557+ --- @param state boolean
2558+ --- @return void
2559+ --- @overload fun ( state : boolean ): void
2560+ function DisableWorldhorizonRendering (state ) end
2561+
2562+
25212563--- SetPlayerStamina
25222564---
25232565--- @hash [0xA9EC16C7](https://docs.fivem.net/natives/?_0xA9EC16C7)
@@ -2764,6 +2806,23 @@ function GetAmbientPedRangeMultiplier() end
27642806function MumbleIsConnected () end
27652807
27662808
2809+ --- Like DRAW_RECT, but it's a line.
2810+ ---
2811+ --- @hash [0xB856A90](https://docs.fivem.net/natives/?_0xB856A90)
2812+ --- @param x1 number (float )
2813+ --- @param y1 number (float )
2814+ --- @param x2 number (float )
2815+ --- @param y2 number (float )
2816+ --- @param width number (float )
2817+ --- @param r number (int )
2818+ --- @param g number (int )
2819+ --- @param b number (int )
2820+ --- @param a number (int )
2821+ --- @return void
2822+ --- @overload fun ( x1 : number , y1 : number , x2 : number , y2 : number , width : number , r : number , g : number , b : number , a : number ): void
2823+ function DrawLine_2d (x1 , y1 , x2 , y2 , width , r , g , b , a ) end
2824+
2825+
27672826--- Sets the type for the minimap blip clipping object to be either rectangular or rounded.
27682827---
27692828--- @hash [0xB8B4490C](https://docs.fivem.net/natives/?_0xB8B4490C)
@@ -2924,6 +2983,16 @@ function GetVehicleCheatPowerIncrease(vehicle) end
29242983function GetPedHeadOverlayData (ped , index ) end
29252984
29262985
2986+ --- RegisterNuiCallback
2987+ ---
2988+ --- @hash [0xC59B980C](https://docs.fivem.net/natives/?_0xC59B980C)
2989+ --- @param callbackType string (char* )
2990+ --- @param callback fun
2991+ --- @return void
2992+ --- @overload fun ( callbackType : string , callback : fun ): void
2993+ function RegisterNuiCallback (callbackType , callback ) end
2994+
2995+
29272996--- Sets power being sent to a wheel.
29282997--- Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
29292998---
@@ -3532,6 +3601,50 @@ function ForceSnowPass(enabled) end
35323601function MumbleSetServerAddress (address , port ) end
35333602
35343603
3604+ --- Requests a resource file set with the specified name to be downloaded and mounted on top of the current resource.
3605+ ---
3606+ --- Resource file sets are specified in `fxmanifest.lua` with the following syntax:
3607+ ---
3608+ --- ```lua
3609+ --- file_set 'addon_ui' {
3610+ --- 'ui/addon/index.html',
3611+ --- 'ui/addon/**.js',
3612+ --- }
3613+ --- ```
3614+ ---
3615+ --- This command will trigger a script error if the request failed.
3616+ --- @usage -- fxmanifest.lua
3617+ --- file_set 'dummies' {
3618+ --- 'dummy/**.txt',
3619+ --- 'potato.txt',
3620+ --- }
3621+ ---
3622+ --- -- main script
3623+ --- local function PrintTest()
3624+ --- local tests = { 'potato.txt', 'dummy/1.txt', 'dummy/b/2.txt' }
3625+ ---
3626+ --- for _, v in ipairs(tests) do
3627+ --- local data = LoadResourceFile(GetCurrentResourceName(), v)
3628+ --- print(v, data)
3629+ --- end
3630+ --- end
3631+ ---
3632+ --- RegisterCommand('fileset', function()
3633+ --- PrintTest()
3634+ ---
3635+ --- while not RequestResourceFileSet('dummies') do
3636+ --- Wait(100)
3637+ --- end
3638+ ---
3639+ --- PrintTest()
3640+ --- end
3641+ --- @hash [0xE7490533](https://docs.fivem.net/natives/?_0xE7490533)
3642+ --- @param setName string (char* )
3643+ --- @return boolean
3644+ --- @overload fun ( setName : string ): boolean
3645+ function RequestResourceFileSet (setName ) end
3646+
3647+
35353648--- GetVehicleCurrentRpm
35363649---
35373650--- @hash [0xE7B12B54](https://docs.fivem.net/natives/?_0xE7B12B54)
@@ -3667,6 +3780,23 @@ function DrawGizmo(matrixPtr, id) end
36673780function SetVehicleSteeringScale (vehicle , scale ) end
36683781
36693782
3783+ --- DRAW_RECT, but with a rotation. Seems to be broken.
3784+ ---
3785+ --- @hash [0xEC37C168](https://docs.fivem.net/natives/?_0xEC37C168)
3786+ --- @param x number (float )
3787+ --- @param y number (float )
3788+ --- @param width number (float )
3789+ --- @param height number (float )
3790+ --- @param rotation number (float )
3791+ --- @param r number (int )
3792+ --- @param g number (int )
3793+ --- @param b number (int )
3794+ --- @param a number (int )
3795+ --- @return void
3796+ --- @overload fun ( x : number , y : number , width : number , height : number , rotation : number , r : number , g : number , b : number , a : number ): void
3797+ function DrawRectRotated (x , y , width , height , rotation , r , g , b , a ) end
3798+
3799+
36703800--- A getter for [FREEZE_ENTITY_POSITION](https://docs.fivem.net/natives/?_0x428CA6DBD1094446).
36713801--- @usage local isFrozen = IsEntityPositionFrozen(PlayerPedId()
36723802--- @hash [0xEDBE6ADD](https://docs.fivem.net/natives/?_0xEDBE6ADD)
@@ -4004,6 +4134,15 @@ function UpdateMapdataEntity(mapdata, entity, entityDef) end
40044134function GetVehicleOilLevel (vehicle ) end
40054135
40064136
4137+ --- Gets a ped model's personality type.
4138+ ---
4139+ --- @hash [0xFE08CAD6](https://docs.fivem.net/natives/?_0xFE08CAD6)
4140+ --- @param modelHash Hash
4141+ --- @return Hash
4142+ --- @overload fun ( modelHash : Hash ): Hash
4143+ function GetPedModelPersonality (modelHash ) end
4144+
4145+
40074146--- Sets the audio submix ID for a specified player using Mumble 'Native Audio' functionality.
40084147---
40094148--- @hash [0xFE3A3054](https://docs.fivem.net/natives/?_0xFE3A3054)
0 commit comments