mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 14:26:03 +01:00
add openGrabBox event for items like murderbag
This commit is contained in:
@@ -565,3 +565,19 @@ if isServer() then
|
|||||||
registerStash(name, label, slots, weight, owner, coords)
|
registerStash(name, label, slots, weight, owner, coords)
|
||||||
end)
|
end)
|
||||||
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