[FREE] [QBCORE] Player Owned Shops

This is a script I was supposed to use for my city but never got around to use it.

MORE UP TO DATE VERSION: GitHub - Lucasmillen1/flex-ownedshops: A QB-CORE player owned shop for people, jobs or gangs

ORIGINAL: GitHub - Flexiboi/flex-ownedshops: A QB-CORE player owned shop for people, jobs or gangs

Players can add stuff to the shop and set a price. (Shop need to be bought if it isnt from a gang or job)

You can place for each shop:

  • A toggle duty spot
  • A place to access the shop as a buyer (Can be target or not and with a prop or not)
  • A place to manage / buy the shop

What do you need?

  • SQL scrip
  • qb-menu
  • qb-target

(Not actively working on it, so you might get a push or update here and there)
And thanks to whoever helps me fix stuff!

10 Likes


What went wrong?

Check and make sure you can have primary as an argument for the notify.
Maybe try change it to success or something :smile:

Hello friend, I took the privilege of testing your script, it really looks impressive.
I only found a bug in the programming, I’ll give you an example:
You add 1 item to the store, you set the price at 1 dollar, you pay it, 1 dollar is deducted from your wallet and you receive your product, so everything is perfect.
But, if you add, for example: 10 products and you set the price of 1 dollar per product, when you buy the 10 products, it only costs you 1 dollar for the 10 products, then it should take away 10 dollars and it only takes away 1 dollar.
but I have solved the problem of your script :slight_smile:

Try downloading the latest version.
I thought I fixed that.
If it still happens reply here.

Thanks!

Video doesn’t play, Just to confirm, Players can make their Own Shops? Or Admins have to do it for them?

Admins will have to set it up
They can set it up so people can buy it
Or link it to a gang / job

Dang, Im tryna find something where players can make their own shops

I will have a look into it if i have time

Im thinking bout just developing one myself, My idea for one is kinda big, If you wanna hit me up on discord, wg7thdom We can talk more about it, Would love to work on it with you, and when we’re finished I wouldnt mind you selling it on Tebex if your interested in doing that lol.

1 Like

Thanks for the shoutout!

  • added ability to see amount in stock from manage inventory screen
  • option for owner to remove items from shop and return to personal inventory
  • proper USD formatting for dollar amounts (working on updating the notifications)
  • supports new and old qb-management exports
  • added ability for each store, even if locked by job to be independent and using separate ‘store bank account’ which can be managed from shop menu

I’ve tested extensively with job code lock with ped, working on civilian ownership + gang ownership and prop (such a vending machine) and will update as I make progress (:

Let me know if you run into issues and I will look into them!

1 Like

NEW UPDATE!

– added an option for stores not to display items with 0 qty
– added an option to limit the max price of items
– added an option to enable a blacklist to prevent certain items from being sold in stores
– added pricing updates, now you can run a store wide sale, increase prices storewide
– Zones put in separate file to clean up client.lua

1 Like

i tried to add a fourth shop and its not working do you know what im doing wrong i just copied and pasted the first shop and changed the number ,cords and name of shop and job

Try the update from the person above :grin:

Is there a way to make this work with ox_inventory