Skip to content

Commit

Permalink
fix: missing and invalid types
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 25, 2023
1 parent cb1b997 commit 8c46a47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ local function closeTrunk()
end
end

---@param inv string
---@param data any
---@param inv string?
---@param data any?
---@return boolean?
function client.openInventory(inv, data)
if invOpen then
Expand Down
4 changes: 3 additions & 1 deletion modules/inventory/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ local Inventory = {}
---@field changed? boolean
---@field weapon? number
---@field containerSlot? number
---@field player? { source: number, ped: number, groups: table, name?: string, sex?: string, dateofbirth?: string }
---@field netid? number

---@alias inventory OxInventory | table | string | number

Expand Down Expand Up @@ -1227,7 +1229,7 @@ end)

Inventory.Drops = {}

---@param prefix string
---@param prefix string?
---@return string
local function generateInvId(prefix)
while true do
Expand Down

0 comments on commit 8c46a47

Please sign in to comment.