The Jones Market Script addon enhances your game world by introducing a dynamic market system. Players can engage in selling goods through an interactive NPC shop. Let’s dive into the features:
- NPC Placement and Interaction:
- The addon places an NPC vendor in the game world.
- When players interact with the NPC, it opens an inventory interface.
- Inventory System:
- Inside the NPC’s inventory, players find a list of items available for sale.
- Hovering over an item reveals its sell price. This transparency helps players make informed decisions.
- Selling:
- To sell an item, players can drag it from the player’s inventory to an empty space in the shop.
- The corresponding amount of money is added to the player’s inventory as cash.
- If players change their minds, they can drag the item back to the inventory, and the money is taken back.
- Finalizing Sales:
- When players close the inventory with items still in the shop, the sale becomes final.
- This ensures that players commit to their purchases.
- Dynamic Pricing:
- The market reacts to player behavior. For example:
- If many players are fishing, fish prices decrease due to oversupply.
- Conversely, if stolen goods aren’t popular, their prices increase.
- This dynamic pricing system keeps the economy engaging and realistic.
- Anti-Cheating Measures:
- NPCs are spawned using the Jones Util script.
- NPCs only appear within a range of 20 units from the player. This prevents cheating by revealing vendor locations.
- All addon files are server-sided, making it difficult to exploit or manipulate prices.
Jones Market Script adds depth to your game world, encourages player interaction, and creates an immersive economy. Happy selling! 

Config
config.shops = {
["Water Shop"] = {
locations = {
vector4(-672.2261, -1071.6414, 15.8616, 0.0000),
},
npc = `s_m_m_doctor_01`,
items = {
["water"] = {
min = 50,
max = 75,
market = "houses",
},
},
jobs = {
"police",
} -- remove the whole jobs part if you want anyone to use it
},
}
Showcase
Purchase
|
|
| Code is accessible |
No |
| Subscription-based |
No |
| Lines (approximately) |
137 |
| Requirements |
jones_util, ox_inventory, ox_lib, ox_target |
| Support |
Yes |