Changed createshop to registershop

dont forget to update

usibg cache system for clothing
This commit is contained in:
gononono64 committed 2025-05-24 22:10:39 -05:00
1 parent 13e0d0bb98
commit ba111f1b52
14 files changed
+139 -15

No files matched your search

+3 -1
View File
@@ -77,6 +77,8 @@ Inventory.OpenStash = function(src, id)
TriggerClientEvent('community_bridge:client:jpr-inventory:openStash', src, id, { weight = stash.weight, slots = stash.slots })
end
---This will register a stash
---@param id number||string
---@param label string
@@ -154,7 +156,7 @@ end
-- @param shopInventory table
-- @param shopCoords table
-- @param shopGroups table
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
Inventory.RegisterShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
if not shopTitle or not shopInventory or not shopCoords then return end
if registeredShops[shopTitle] then return true end