Skip to content

Commit

Permalink
ci: generate native definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 28, 2023
1 parent d33c171 commit 64caad7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
8 changes: 3 additions & 5 deletions library/natives/GTAV/ENTITY.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1141,11 +1141,9 @@ function IsEntityOccluded(entity) end

---**`ENTITY` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xE659E47AF827484B)
---```
---Returns true if the entity is in between the minimum and maximum values for the 2d screen coords.
---This means that it will return true even if the entity is behind a wall for example, as long as you're looking at their location.
---Chipping
---```
---Determines whether the screen position of the specified entity is within the 2D bounds of the screen.
---
---This native will not check if the entity is not visible due to being occluded (for example, behind a wall). To check if a entity is on screen and is not occluded, use [IS_ENTITY_OCCLUDED](#\_0xE31C2C72B8692B64).
---@param entity number
---@return boolean
function IsEntityOnScreen(entity) end
Expand Down
37 changes: 23 additions & 14 deletions library/natives/GTAV/VEHICLE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,20 @@ function GetBoatBoomPositionRatio_2(vehicle, p1) end
---@param p1 boolean
function GetBoatBoomPositionRatio_3(vehicle, p1) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5AA3F878A178C4FC)
---Retrieves the agility for a specific boat model, including any vehicle mods. Unlike other vehicles where Rockstar Games typically assess performance based on traction, boats use agility as a measure. This static value is distinct from the traction metrics used for other vehicle types.
---
---```
---NativeDB Introduced: v323
---```
---@param modelHash number | string
---@return number
function GetBoatVehicleModelAgility(modelHash) end

---@deprecated
GetVehicleModelMoveResistance = GetBoatVehicleModelAgility

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x9078C0C5EF8C19E9)
---```
Expand Down Expand Up @@ -1164,8 +1178,7 @@ function GetLiveryName(vehicle, liveryIndex) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF7AF4F159FF99F97)
---Will return a vehicle's manufacturer display label.
---Returns "CARNOTFOUND" if the hash doesn't match a vehicle hash.
---Retrieves the manufacturer's name for a specified vehicle.
---
---```
---NativeDB Introduced: v1868
Expand Down Expand Up @@ -1454,8 +1467,10 @@ function GetTyreWearMultiplier(vehicle, wheelIndex) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5DD35C8D074E57AE)
---Retrieves a static value representing the maximum drive force of specific a vehicle, including any vehicle mods. This value does not change dynamically during gameplay. This value provides an approximation and should be considered alongside other performance metrics like top speed for a more comprehensive understanding of the vehicle's capabilities.
---
---```
---static - max acceleration
---NativeDB Introduced: v323
---```
---@param vehicle number
---@return number
Expand Down Expand Up @@ -1754,7 +1769,11 @@ GetVehiclePaintFade = GetVehicleEnveffScale

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x53AF99BAA671CA47)
---This native does not have an official description.
---Retrieves a static value representing the estimated max speed of a specific vehicle, including any vehicle mods. This value does not change dynamically during gameplay.
---
---```
---NativeDB Introduced: v323
---```
---@param vehicle number
---@return number
function GetVehicleEstimatedMaxSpeed(vehicle) end
Expand Down Expand Up @@ -2037,16 +2056,6 @@ function GetVehicleModelMaxKnots(modelHash) end
---@return number
function GetVehicleModelMaxTraction(modelHash) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5AA3F878A178C4FC)
---```
---GET_VEHICLE_MODEL_*
---called if the vehicle is a boat -- returns vecMoveResistanceX?
---```
---@param modelHash number | string
---@return number
function GetVehicleModelMoveResistance(modelHash) end

---**`VEHICLE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x2AD93716F184EDA4)
---```
Expand Down

0 comments on commit 64caad7

Please sign in to comment.