You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have pawn shops in game which are essentially stashes that are public - basically people come to it and sell items to it. I have it working fine. However it keeps going over weight within 24 hours because of how many people are using it - even with max weight allowed at 999kg.
Describe the solution you'd like
• Either an export to automatically clear the specific stash id items (on automatic txAdmin restart)
or
• Some way, if possible, to make it have unlimited weight for that stash id?
Describe alternatives you've considered
Messin around with exports.ox_inventory:SetDurability of items in the stash but could not figure out how nor how to implement exports.ox_inventory:ClearInventory in this way.
Additional context
Export that I could run in the pawn shop script that will clear the shops weight/items each night. (I txAdmin restart automatically once every 24hrs)
-- Event handler to clear stashes on server shutdown/restart
AddEventHandler('txAdmin:events:serverShuttingDown', function()
for shopId, _ in pairs(Config.Shops) do
exports.ox_inventory:ClearInventory(shopId)
end
end)
I couldn't get this to work for some reason.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have pawn shops in game which are essentially stashes that are public - basically people come to it and sell items to it. I have it working fine. However it keeps going over weight within 24 hours because of how many people are using it - even with max weight allowed at 999kg.
Describe the solution you'd like
• Either an export to automatically clear the specific stash id items (on automatic txAdmin restart)
or
• Some way, if possible, to make it have unlimited weight for that stash id?
Describe alternatives you've considered
Messin around with
exports.ox_inventory:SetDurability
of items in the stash but could not figure out how nor how to implementexports.ox_inventory:ClearInventory
in this way.Additional context
Export that I could run in the pawn shop script that will clear the shops weight/items each night. (I txAdmin restart automatically once every 24hrs)
I couldn't get this to work for some reason.
The text was updated successfully, but these errors were encountered: