[FREE] [ESX - QB - OX] Basic Dealer System

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.

Download Link :
ESX = GitHub - ahmetkavl/KVL-Dealer: New Dealer System for Fivem
QB = GitHub - ahmetkavl/KVL-Dealer-QB-Version-: KVL Dealer for qb servers

Requirements


GitHub - overextended/ox_target: Standalone "third-eye" targeting resource.



My Other Projects :star_struck:
[PAID] [QB] [ESX] Advanced Uwu Cafe Job
[QB/ESX] Advanced Jewel Robbery
[PAID] KVL Taco | ESX & QB

6 Likes

Thank you, always welcome a clean script.
Sometimes simple is just better :wink:

Thank you so much, I will continue to share such projects as I think of them. :star_struck: :facepunch:

1 Like

looks nice! , does it use ox target??

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

1 Like

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.

Client Side


Server Side

image

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.

1 Like

yeah i got it going with adding 1,2,3 etc like you said above, amazing release thanks homie :smiley:

thank you :heart_eyes:

Mini new feature is released

Moved NPC insertion directly into salers and dealers table

would you be willing to switch to qb target?

    AddBoxZone("OpenDealer", vector3(427.5783, -1918.651, 25.3186), 0.6, 0.7, {
        name="OpenDealer",
        heading=310.06,
        debugPoly=false,
        minZ=25.2,
        maxZ=26.2
        }, {
            options = {
                {
                        
                    event = 'openBuyerMenu',
                    icon = "far fa-clipboard",
                    label = "Dealer Menu",
                },
            },
            distance = 2
    })

I’m not very knowledgeable about QB, but you need to remove the current ox targets on my script and add this kind of code.

This didn’t work. Do you know another method?

What kind of error are you encountering??

Im using oxinventory and oxtarget and for some reason am getting this error

[ script:pawnshop] SCRIPT ERROR: @pawnshop/server.lua:21: attempt to index a nil value (field ‘Functions’)

Everytime I try to sell to the shop

Setup the Esx version not qb

++ All bugs fixed

+ All known issues have been resolved. +