From 1ba9d3bb6f5560bca80551af38a61f5f7d54a0bd Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 16 Aug 2022 18:15:44 +1000 Subject: [PATCH] ox_lib: new vehicle imports; progress interrupts --- docs/ox_lib/GetClosestVehicle/Client.md | 12 ++++++++++++ docs/ox_lib/GetNearbyVehicles/Client.md | 11 +++++++++++ docs/ox_lib/Interface/Client/progress.md | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 docs/ox_lib/GetClosestVehicle/Client.md create mode 100644 docs/ox_lib/GetNearbyVehicles/Client.md diff --git a/docs/ox_lib/GetClosestVehicle/Client.md b/docs/ox_lib/GetClosestVehicle/Client.md new file mode 100644 index 00000000..0187d671 --- /dev/null +++ b/docs/ox_lib/GetClosestVehicle/Client.md @@ -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 +``` diff --git a/docs/ox_lib/GetNearbyVehicles/Client.md b/docs/ox_lib/GetNearbyVehicles/Client.md new file mode 100644 index 00000000..e085cf6b --- /dev/null +++ b/docs/ox_lib/GetNearbyVehicles/Client.md @@ -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 +``` diff --git a/docs/ox_lib/Interface/Client/progress.md b/docs/ox_lib/Interface/Client/progress.md index 8d285320..0ab60b4f 100644 --- a/docs/ox_lib/Interface/Client/progress.md +++ b/docs/ox_lib/Interface/Client/progress.md @@ -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)