[RELEASE] [ESX] r3_pawnshop

r3_pawnshop:
A pawnshop plugin for ESX.

This is a simple pawnshop plugin for ESX. For some reason there aren’t a lot of these plugins out there so I made my own version. I used some code from esx_drugs.

Features

  • Sell specific items to the pawnshop
  • Easy configuration
  • Possibility to add more items or change current items that can be sold
  • Possibility to enable opening hours and change the opening hours to your liking

Download

Installation details can be found on the github as well. Make sure you install all the dependencies otherwise it will cause errors.

Configuration
In the config.lua you can change what items can be sold, you can also change the pawnshop location and other various things.
The default items in the config are items from my plugin r3_prospecting so if you don’t use this plugin change the items to items you have in your server.

Preview
Here’s a preview of the plugin:

And a screenshot of how it looks when approaching the pawnshop:


My other resources
If you like this resource, you might like some of my other work as well:

[ESX] [QBCORE] Prospecting with treasure map
[ESX] [QBCORE] Food Delivery like Uber Eats
[ESX] [QBCORE] Location Items
[ESX] [QBCORE] Evidence Storage
[ESX] [QBCORE] Delivery job for different jobs

10 Likes

Add some screenshots

Hi,

Ive got an error when the item to sell starts with a number, for example: 2ct_gold_chain = 3000,

error on console: Error parsing script @rl_pawnshop/config.lua in resource rl_pawnshop: @rl_pawnshop/config.lua:30: ‘}’ expected (to close ‘{’ at line 7) near ‘=’

Do you know how to solve?

Thank you

1 Like

rl_pawnshop is not my resource but I think you changed the name, it looks like you forgot a “,” somewhere without the " " ofcourse. Do you have your edited config file for me?

It would be really cool if when you click E inventoryhud appears and you could drag to the right to sell

1 Like

Why it doesnt shows any item?

	rolex = 2500,
	gold_bar = 120,
	dia_box = 80,
	wallet = 1250,

You need to have the items in your inventory for them to show up

I Have all items listed in config already.

But do you have them in your inventory?

1 Like

yeah sir

Oh, I didn’t have this problem. Do you get any errors?

If im correct this should open the shop from 22:00 till 06:00 in the morning

Config.OpenHour = 22 – From what hour should the pawnshop be open?
Config.CloseHour = 6 – From what hour should the pawnshop be closed?

But the shop wont open when i set the time at 22:00.

Did you get any errors?

Nope. Not in F8 or server console.

1 Like

That’s wierd. What if you change the times back to the original times?

Then it works fine.

Oh that’s wierd. If you change them to your times does the pawnshop open at all?

No it wont open. The shop closed text stays as it is.

I got the same thing. Seems like it freaks out when opening hour is a higher value then closing hour. I’ll try to fix it asap

1 Like