diff --git a/shared/stashcontrol.lua b/shared/stashcontrol.lua index c6256e2..8a1cb2c 100644 --- a/shared/stashcontrol.lua +++ b/shared/stashcontrol.lua @@ -565,3 +565,19 @@ if isServer() then registerStash(name, label, slots, weight, owner, coords) end) end + +RegisterNetEvent(getScript()..":openGrabBox", function(data) + if isStarted(OXInv) then + return + end + local id = "" + if data.metadata then + id = data.metadata.id + elseif data.info then + id = data.info.id + end + openStash({ + stash = id, + coords = GetEntityCoords(PlayerPedId()) + }) +end) \ No newline at end of file