Skip to content

Commit

Permalink
refactor(client/inventory): optimisations to dumpster checks
Browse files Browse the repository at this point in the history
Also fixes a bug if not using ox_target to access dumpsters.
  • Loading branch information
thelindat committed Jan 30, 2025
1 parent 328b0a1 commit 20ba768
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 198 deletions.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ local function registerCommands()
if not shared.target and entityType == 3 then
local model = GetEntityModel(entity)

if Inventory.Dumpsters[model] then
if Inventory.Dumpsters:includes(model) then
return Inventory.OpenDumpster(entity)
end
end
Expand Down
Loading

0 comments on commit 20ba768

Please sign in to comment.