mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 22:16:03 +01:00
Rework SingleProgress slightly
Realised it wasn't doing the math to take the correct amount of required items, so this fixes it also if `SingleProgress` is enabled, it won't show the "Ingredient Progress bars" any more
This commit is contained in:
@@ -2390,17 +2390,17 @@ if isServer() then
|
||||
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
|
||||
local Ped = PlayerPedId()
|
||||
local id = data.metadata and data.metadata.id or data.info and data.info.id or ""
|
||||
|
||||
if isStarted(OXInv) then
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
openStash({
|
||||
stash = id,
|
||||
coords = GetEntityCoords(Ped)
|
||||
})
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user