mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-15 10:53:55 +00:00
add openGrabBox event for items like murderbag
This commit is contained in:
1 parent
ada724069b
commit
e4e9ef0fb2
1 file changed
+16
@@ -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)
|
||||
Reference in new issue
Block a user