Skip to content

Commit

Permalink
Release 2023-03-06
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 6, 2023
1 parent b9c95f3 commit be2a5af
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 0 deletions.
139 changes: 139 additions & 0 deletions docs-gen/client-cfx.def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,20 @@ function ClearVehicleXenonLightsCustomColor(vehicle) end
function AddTextEntryByHash(entryKey, entryText) end


--- Replaces the pixel data in a runtime texture with the image data from a file in the current resource, or a data URL.
---
--- If the bitmap is a different size compared to the existing texture, it will be resampled.
---
--- This command may end up executed asynchronously, and only update the texture data at a later time.
---
--- @hash [0x28FC4ECB](https://docs.fivem.net/natives/?_0x28FC4ECB)
--- @param tex number (long)
--- @param fileName string (char*)
--- @return boolean
--- @overload fun(tex: number, fileName: string): boolean
function SetRuntimeTextureImage(tex, fileName) end


--- SetInteriorPortalRoomFrom
--- @usage local playerPed = PlayerPedId()
--- local interiorId = GetInteriorFromEntity(playerPed)
Expand Down Expand Up @@ -1696,6 +1710,15 @@ function GetPlayerVehicleDamageModifier(playerId) end
function SetDefaultVehicleNumberPlateTextPattern(plateIndex, pattern) end


--- Restores an overridden ped model personality type to the default value.
---
--- @hash [0x79A12861](https://docs.fivem.net/natives/?_0x79A12861)
--- @param modelHash Hash
--- @return void
--- @overload fun(modelHash: Hash): void
function ResetPedModelPersonality(modelHash) end


--- Sets whether all tags should group (normal game behavior) or should remain independent and above each ped's respective head when in a vehicle.
---
--- @hash [0x7A27BC93](https://docs.fivem.net/natives/?_0x7A27BC93)
Expand Down Expand Up @@ -1934,6 +1957,15 @@ function MumbleGetTalkerProximity() end
function MumbleClearVoiceTarget(targetId) end


--- Sets whether or not ownership checks should be performed while trying to stow a carriable on a hunting wagon.
---
--- @hash [0x85A10FFD](https://docs.fivem.net/natives/?_0x85A10FFD)
--- @param ignore boolean
--- @return void
--- @overload fun(ignore: boolean): void
function SetIgnoreVehicleOwnershipForStowing(ignore) end


--- Sets the traction vector length of a wheel.
--- Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
---
Expand Down Expand Up @@ -2518,6 +2550,16 @@ function RemoveReplaceTexture(origTxd, origTxn) end
function RegisterRawNuiCallback(callbackType, callback) end


--- Disables the game's world horizon lods rendering (see `farlods.#dd`).
--- Using the island hopper natives might also affect this state.
---
--- @hash [0xA9C92CDC](https://docs.fivem.net/natives/?_0xA9C92CDC)
--- @param state boolean
--- @return void
--- @overload fun(state: boolean): void
function DisableWorldhorizonRendering(state) end


--- SetPlayerStamina
---
--- @hash [0xA9EC16C7](https://docs.fivem.net/natives/?_0xA9EC16C7)
Expand Down Expand Up @@ -2764,6 +2806,23 @@ function GetAmbientPedRangeMultiplier() end
function MumbleIsConnected() end


--- Like DRAW_RECT, but it's a line.
---
--- @hash [0xB856A90](https://docs.fivem.net/natives/?_0xB856A90)
--- @param x1 number (float)
--- @param y1 number (float)
--- @param x2 number (float)
--- @param y2 number (float)
--- @param width number (float)
--- @param r number (int)
--- @param g number (int)
--- @param b number (int)
--- @param a number (int)
--- @return void
--- @overload fun(x1: number, y1: number, x2: number, y2: number, width: number, r: number, g: number, b: number, a: number): void
function DrawLine_2d(x1, y1, x2, y2, width, r, g, b, a) end


--- Sets the type for the minimap blip clipping object to be either rectangular or rounded.
---
--- @hash [0xB8B4490C](https://docs.fivem.net/natives/?_0xB8B4490C)
Expand Down Expand Up @@ -2924,6 +2983,16 @@ function GetVehicleCheatPowerIncrease(vehicle) end
function GetPedHeadOverlayData(ped, index) end


--- RegisterNuiCallback
---
--- @hash [0xC59B980C](https://docs.fivem.net/natives/?_0xC59B980C)
--- @param callbackType string (char*)
--- @param callback fun
--- @return void
--- @overload fun(callbackType: string, callback: fun): void
function RegisterNuiCallback(callbackType, callback) end


--- Sets power being sent to a wheel.
--- Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
---
Expand Down Expand Up @@ -3532,6 +3601,50 @@ function ForceSnowPass(enabled) end
function MumbleSetServerAddress(address, port) end


--- Requests a resource file set with the specified name to be downloaded and mounted on top of the current resource.
---
--- Resource file sets are specified in `fxmanifest.lua` with the following syntax:
---
--- ```lua
--- file_set 'addon_ui' {
--- 'ui/addon/index.html',
--- 'ui/addon/**.js',
--- }
--- ```
---
--- This command will trigger a script error if the request failed.
--- @usage -- fxmanifest.lua
--- file_set 'dummies' {
--- 'dummy/**.txt',
--- 'potato.txt',
--- }
---
--- -- main script
--- local function PrintTest()
--- local tests = { 'potato.txt', 'dummy/1.txt', 'dummy/b/2.txt' }
---
--- for _, v in ipairs(tests) do
--- local data = LoadResourceFile(GetCurrentResourceName(), v)
--- print(v, data)
--- end
--- end
---
--- RegisterCommand('fileset', function()
--- PrintTest()
---
--- while not RequestResourceFileSet('dummies') do
--- Wait(100)
--- end
---
--- PrintTest()
--- end
--- @hash [0xE7490533](https://docs.fivem.net/natives/?_0xE7490533)
--- @param setName string (char*)
--- @return boolean
--- @overload fun(setName: string): boolean
function RequestResourceFileSet(setName) end


--- GetVehicleCurrentRpm
---
--- @hash [0xE7B12B54](https://docs.fivem.net/natives/?_0xE7B12B54)
Expand Down Expand Up @@ -3667,6 +3780,23 @@ function DrawGizmo(matrixPtr, id) end
function SetVehicleSteeringScale(vehicle, scale) end


--- DRAW_RECT, but with a rotation. Seems to be broken.
---
--- @hash [0xEC37C168](https://docs.fivem.net/natives/?_0xEC37C168)
--- @param x number (float)
--- @param y number (float)
--- @param width number (float)
--- @param height number (float)
--- @param rotation number (float)
--- @param r number (int)
--- @param g number (int)
--- @param b number (int)
--- @param a number (int)
--- @return void
--- @overload fun(x: number, y: number, width: number, height: number, rotation: number, r: number, g: number, b: number, a: number): void
function DrawRectRotated(x, y, width, height, rotation, r, g, b, a) end


--- A getter for [FREEZE_ENTITY_POSITION](https://docs.fivem.net/natives/?_0x428CA6DBD1094446).
--- @usage local isFrozen = IsEntityPositionFrozen(PlayerPedId()
--- @hash [0xEDBE6ADD](https://docs.fivem.net/natives/?_0xEDBE6ADD)
Expand Down Expand Up @@ -4004,6 +4134,15 @@ function UpdateMapdataEntity(mapdata, entity, entityDef) end
function GetVehicleOilLevel(vehicle) end


--- Gets a ped model's personality type.
---
--- @hash [0xFE08CAD6](https://docs.fivem.net/natives/?_0xFE08CAD6)
--- @param modelHash Hash
--- @return Hash
--- @overload fun(modelHash: Hash): Hash
function GetPedModelPersonality(modelHash) end


--- Sets the audio submix ID for a specified player using Mumble 'Native Audio' functionality.
---
--- @hash [0xFE3A3054](https://docs.fivem.net/natives/?_0xFE3A3054)
Expand Down
25 changes: 25 additions & 0 deletions docs-gen/server-cfx.def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,17 @@ function GetAirDragMultiplierForPlayersVehicle(playerSrc) end
function SetEntityRoutingBucket(entity, bucket) end


--- Scans the resources in the specified resource root. This function is only available in the 'monitor mode' process and is
--- not available for user resources.
---
--- @hash [0x636F097F](https://docs.fivem.net/natives/?_0x636F097F)
--- @param rootPath string (char*)
--- @param callback fun
--- @return void
--- @overload fun(rootPath: string, callback: fun): void
function ScanResourceRoot(rootPath, callback) end


--- GetNumPlayerIndices
---
--- @hash [0x63D13184](https://docs.fivem.net/natives/?_0x63D13184)
Expand Down Expand Up @@ -641,6 +652,20 @@ function SetRoutingBucketEntityLockdownMode(bucketId, mode) end
function GetVehicleType(vehicle) end


--- Get an identifier from a player by the type of the identifier.
--- @usage local playerLicenses = {}
---
--- AddEventHandler('playerJoining', function()
--- playerLicenses[source] = GetPlayerIdentifierByType(source, 'license')
--- end
--- @hash [0xA61C8FC6](https://docs.fivem.net/natives/?_0xA61C8FC6)
--- @param playerSrc string (char*)
--- @param identifierType string (char*)
--- @return string
--- @overload fun(playerSrc: string, identifierType: string): string
function GetPlayerIdentifierByType(playerSrc, identifierType) end


--- Requests the commerce data for the specified player, including the owned SKUs. Use `IS_PLAYER_COMMERCE_INFO_LOADED` to check if it has loaded.
---
--- @hash [0xA8F63EAB](https://docs.fivem.net/natives/?_0xA8F63EAB)
Expand Down
1 change: 1 addition & 0 deletions docs-gen/shared-cfx.def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ function IsAceAllowed(object) end
--- * 2545
--- * 2612
--- * 2699
--- * 2802
--- * RedM
--- * 1311
--- * 1355
Expand Down

0 comments on commit be2a5af

Please sign in to comment.