Wert-shops + delivery jobs (Buy and manage your shops)

You can access the setup information you need about this product

INSTALLATION

Script information :

  • Buy and manage grocery stores. Add new items to your grocery store by ordering goods from the trade center

  • Don't forget to put the pictures of the items you will add to the images folder (NOT THE PICTURES WILL NOT APPEAR).

1 - Prepare the depends scripts and upload them to the resources folder

2 - Follow the instructions in the important section for qb framework.

IMPORTANT (ONLY QB FRAMEWORK)

  • Open qb-inventory/server/main.lua

    • Add the following codes to the place shown in the picture

    • Event name : 'inventory:server:SetInventoryData'

  • And add this lines

```lua
local shopfound = exports['wert-shops']:ShopCheck(QBCore.Shared.SplitStr(shopType, "_")[2])
if shopfound then
    TriggerEvent("wert-shops:server:UpdateShopItems", QBCore.Shared.SplitStr(shopType, "_")[2], itemData, fromAmount)
    TriggerEvent("wert-shops:server:after-buy", QBCore.Shared.SplitStr(shopType, "_")[2], price)
end
```

OX Library option

1 - In config.lua find option

2 - Go fxmanifest.lua and add or open shared code

3 - Already, okey

Installation complete

Last updated