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:
Jim Shield
2025-09-27 12:34:46 +01:00
parent ee15f3b076
commit 178040348e
2 changed files with 51 additions and 44 deletions

View File

@@ -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)