[OX] Sell Items To Peds (Pawnshop / Drug Dealer) | Clean Menuđź§˝

Today I am releasing a script that I am using on my personal server, that allows you to sell items to peds with ease.

The script is fairly simple and you don’t have to be a developer or have in-depth knowledge to play around with it!

I have listed the script as ESX compatible but I am actually just using the function ESX.Math.Round() in the client.lua - This only adds commas turning “£10000” into “£10,000” to make it look more appealing in the menu. You can turn this off in the config or just add your own way of doing it (as well as changing the framework exports).

Preview

https://youtu.be/9S2eCE_qrlI

Screenshots

image_2024-02-26_012105537
image_2024-02-26_012120906

Config

Download: Here

Patches: Fixed blip debug & exploit in rewards (thanks Pijukas)

Dependencies Used:
Ox_Inventory
Ox_Lib
Ox_Target

6 Likes

youtube video is private, can’t see :frowning:

Fixed :slight_smile:

ERROR:
“[ script:es_extended] SCRIPT ERROR: @es_extended/server/main.lua:360: No such export setPlayerInventory in resource ox_inventory”

Any fix for this?

1 Like

What version of ox are you using?

The latest one

Make sure you’re starting the script after ox_inventory, ox_lib etc

Check the config for missing commas/brackets.

Have you also touched anything inside the client?

I haven’t touched anything inside the client? No commas/brackets missing…

Send me a zipped/rar file so I can take a look

you have to change that in to qbcore