Hello friends, I wanted to share with you my scenario that emerged as a result of my spare time.
It is a very simple script logically, I thought of sharing it for those who still do not have such a script or are looking for a clean script.
As you can see in the configuration section, there are 2 types of buying/selling.
It is divided into two as buyer and seller. You can sell the products you specify in the configuration to the players at the price you want, or you can have the players buy the products you specify at the price you specify.
Thanks to the input system, players can determine how much they can buy/sell
If you have simple script ideas in mind, but you can’t realize them, you can send your ideas to me on my discord server.
this is awesome! great release, i really wanna get this working where i only have the sell part to npc tho and make it where i can have more than one for different items for example
shop1: sells etc…
shop2: sells etc…
different locations and peds etc
got a pawn shop script in my server atm i edited to make it into like 5 different shops to sell my server items but doesnt use ox target
You can replace the codes in this section with your own target export.
Also, I think you want to sell a different product in each store, for this you need to reproduce on the client and server sides, like the code examples I have given below.
For example, if you want to add a store that sells different products, you should duplicate KVL[‘SELL’].
For example, you should create KVL[‘SELL2’] and open new triggers and change the red places I marked above accordingly. (And also change the event names you just created.)
If you still can’t, contact me on my discord and I will try to help you.