mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
ox_lib: new vehicle imports; progress interrupts
This commit is contained in:
1 parent
8b3233e27c
commit
1ba9d3bb6f
3 files changed
+26
No files matched your search
@@ -0,0 +1,12 @@
|
||||
### lib.getClosestVehicle
|
||||
|
||||
Get the id and coords of the closest vehicle to a set of coordinates.
|
||||
|
||||
```lua
|
||||
---@param coords vector3 The coords to check from.
|
||||
---@param maxDistance number The max distance to check.
|
||||
---@param includePlayerVehicle boolean Whether or not to include the player's current vehicle.
|
||||
---@return number? vehicle
|
||||
---@return vector3? vehicleCoords
|
||||
function lib.getClosestPlayer(coords, maxDistance, includePlayerVehicle) end
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
### lib.getNearbyPlayers
|
||||
|
||||
Get the id and coords of all vehicles within range of a set of coordinates.
|
||||
|
||||
```lua
|
||||
---@param coords vector3 The coords to check from.
|
||||
---@param maxDistance number The max distance to check.
|
||||
---@param includePlayerVehicle boolean Whether or not to include the player's current vehicle.
|
||||
---@return number[]
|
||||
function lib.getNearbyPlayers(coords, maxDistance, includePlayerVehicle) end
|
||||
```
|
||||
@@ -9,6 +9,9 @@ Displays a running progress bar.
|
||||
-- duration: number
|
||||
-- label: string
|
||||
-- useWhileDead: boolean (optional)
|
||||
-- allowRagdoll: boolean (optional)
|
||||
-- allowCuffed: boolean (optional)
|
||||
-- allowFalling: boolean (optional)
|
||||
-- canCancel: boolean (optional)
|
||||
-- anim: table (optional)
|
||||
-- dict: string (optional - either scenario or dict)
|
||||
|
||||
Reference in new issue
Block a user