Skip to content

Commit

Permalink
fix: minor type tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Mar 1, 2024
1 parent 7632fea commit cadcd53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ end

---@param data table
---@param cb fun(response: SlotWithItem | false)?
---@param noAnim boolean
---@param noAnim? boolean
local function useItem(data, cb, noAnim)
local slotData, result = PlayerData.inventory[data.slot]

Expand Down
1 change: 1 addition & 0 deletions modules/bridge/ox/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ end

---@param entityId number
---@return number | string
---@diagnostic disable-next-line: duplicate-set-field
function server.getOwnedVehicleId(entityId)
return Ox.GetVehicle(entityId)?.id
end

0 comments on commit cadcd53

Please sign in to comment.