[free] dfnz_marketplace

Today i want to share my Marketplace script with you.

I am not a huge fan of fancy ui so i make a marketplace using ox_lib context menu.

The script is well optimized and good configurable. Also there is a german and an english translation in the config.

If you have any ideas about future updates let me know in the coments and i try my best also let me hear what you think about this script or what could be better! :slight_smile:

The code is 100% open source so do what you want with it. :slight_smile:

SHOWCASE

DEPENCIES:

DOWNLOAD VIA GITHUB

KEYNOTE:
I tested it a few times without any bugs, if you find some please let me know that i can fix them

2 Likes

i got this bug when i try to edit price and check item in market

this script need to run sql ?

Oh sh*t i totaly forgot the sql, give me 5 minutes and i Upload it on github @MADSTORY

@MADSTORY the sql data is now life on github. Sorry for that :face_with_peeking_eye:

This is great and well optimized, I personally don’t think it needs a key bind, but still great work!

1 Like

Thanks for your Feedback! :slightly_smiling_face: @Hajdenkoo

i test it and it work perfectly but can you add only allow item in config ?? / i will use marketplace like black market to sell only gun in here

Yeah i can do something later that day or tommorow. But not as an update, more like a snippet. I let you know if i have the code done :wink:

ok thanks !!!

UPDATE 1.1.0

You can now choose between a item blacklist or item whitelist

Download the new version here

1 Like

@MADSTORY i upload a new version of the script with your idea. I tested it a few times and it works for me. if you have any problems, let me know. also if you have any other suggestions!

1 Like

thanks !!! :smiling_face_with_three_hearts:

1 Like

i have new idea , can you make config to change currency to buy item in marketplace ? ( like i want to make black marketplace i will change currency to dirty_money

Yeah give me some minutes :wink:

1 Like

@MADSTORY update is live :slight_smile:

That’s the correct sql. with one provided it does not work

CREATE TABLE marketplace (
    id INT NOT NULL AUTO_INCREMENT,
    identifier VARCHAR(255) NOT NULL,
    item VARCHAR(100) NOT NULL,
    label VARCHAR(100) NOT NULL,
    amount INT NOT NULL,
    price DECIMAL(10, 2) NOT NULL,
    PRIMARY KEY (id)
);

Do you have any error? Because i test it allways with my sql and never have a single sql error…

[      script:oxmysql] Query: INSERT INTO marketplace (identifier, item, label, amount, price) VALUES (?, ?, ?, ?, ?)
[      script:oxmysql] ["char1:****","water","Water",1,100]
[      script:oxmysql] Field 'id' doesn't have a default value```

Oh i see, the auto_increment part is missing in my file… let me update it.
Thanks for the Info @Schwartzas :pray:t3:

1 Like