How To Use

Setup a new shop

  • Everything needed is in config.lua and its essentially the same as qb-shop's config.

  • Limit Enable this to add Stash features, This adds limits to items in stores and gets refilled at each restart

  • MaxSlots Set this to your player inventory slot count, this is default "41"

  • BlackMarket Enable to add blackmarket locations (defined at the bottom of this file)

  • Measurement Custom Weight measurement, default "kg"

  • Gabz247 Enable if using gabz 247 stores

  • GabzAmmu Enable if using gabz Ammunation stores

  • VendOverride -- Enable this if you want all the vending machines to use this script

  • RandomAmount -- Sets wether a stash should have a "random" amount of stock or full.

Examples and Explanations

  • Example of a shop

  • Example of a product table in jim-shops/products.lua


Support for external shops

  • You can easily change shops created in other scripts by swapping out the inventory event with my custom event

    • If you have a script that opens a shop, you can swap out the event inventory:server:OpenInventory for jim-shops:ShopOpen and it will open in my shop layout instead of the default inventory layout

    • All my scripts have an option to toggle this in the config

    • But it's very unlikely someone elses script won't

  • For example:

  • in qb-ambulancejob > client > job.lua there is the event

  • Simply changing the event name from inventory:server:OpenInventory to jim-shops:ShopOpen will make it use my script instead

Support for Selling Locations

In Jim-Shops Version 3.0.04+ theres now support for Ped Seller Shops (eg. Pawn Shops) Inside jim-shops/shopSell.lua you can add a new location anywhere you want

Example of a shop:

Example of the product table:

This creates a NPC in the casino that players can sell casino chips to for $1 a chip.

Last updated