Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 20ba768

Browse files
committed
refactor(client/inventory): optimisations to dumpster checks
Also fixes a bug if not using ox_target to access dumpsters.
1 parent 328b0a1 commit 20ba768

File tree

2 files changed

+204
-198
lines changed

2 files changed

+204
-198
lines changed

client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ local function registerCommands()
815815
if not shared.target and entityType == 3 then
816816
local model = GetEntityModel(entity)
817817

818-
if Inventory.Dumpsters[model] then
818+
if Inventory.Dumpsters:includes(model) then
819819
return Inventory.OpenDumpster(entity)
820820
end
821821
end

0 commit comments

Comments
 (0)