All grabbox to recieve slot and maxweight

This commit is contained in:
Jim Shield
2025-10-10 01:41:52 +01:00
parent ae4637f9c4
commit ad47836232

View File

@@ -2548,7 +2548,7 @@ if isServer() then
end)
end
RegisterNetEvent(getScript()..":openGrabBox", function(data)
RegisterNetEvent(getScript()..":openGrabBox", function(data, stashData)
local Ped = PlayerPedId()
local id = data.metadata and data.metadata.id or data.info and data.info.id or ""
@@ -2559,7 +2559,9 @@ RegisterNetEvent(getScript()..":openGrabBox", function(data)
openStash({
stash = id,
coords = GetEntityCoords(Ped)
coords = GetEntityCoords(Ped),
maxWeight = stashData and stashData.slots or 100000,
slots = stashData and stashData.slots or 5,
})
end)