mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix: missing and invalid types and parameters
This commit is contained in:
@@ -25,7 +25,7 @@ local input
|
||||
|
||||
---@param heading string
|
||||
---@param rows string[] | InputDialogRowProps[]
|
||||
---@param options InputDialogOptionsProps[]
|
||||
---@param options InputDialogOptionsProps[]?
|
||||
---@return string[] | number[] | boolean[] | nil
|
||||
function lib.inputDialog(heading, rows, options)
|
||||
if input then return end
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
---@field label string
|
||||
---@field menu? string
|
||||
---@field onSelect? function
|
||||
---@field [string] any
|
||||
|
||||
---@class RadialMenuProps
|
||||
---@field id string
|
||||
@@ -23,8 +24,8 @@ local menuHistory = {}
|
||||
---@type RadialMenuProps?
|
||||
local currentRadial = nil
|
||||
|
||||
---Open a registered radial submenu with the given id.
|
||||
---@param id string
|
||||
---Open a the global radial menu or a registered radial submenu with the given id.
|
||||
---@param id string?
|
||||
local function showRadial(id)
|
||||
local radial = id and menus[id]
|
||||
|
||||
@@ -48,7 +49,7 @@ local function showRadial(id)
|
||||
SendNUIMessage({
|
||||
action = 'openRadialMenu',
|
||||
data = {
|
||||
items = radial?.items or menuItems,
|
||||
items = radial and radial.items or menuItems,
|
||||
sub = radial and true or nil
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user