**Farmers market system for QB-Core, Qbox & ESX**
Let players rent market stalls, stock their own shop, and sell to other players — either at scheduled farmers markets or with portable stalls they place in the world.
Features
Fixed farmers markets
-
Multiple configurable locations with props, zones & blips
-
Open/closed schedule by days + hour intervals
-
Optional automatic location switching
-
Rent via NPC — cash or bank, optional job restriction
-
One active rental flow with timeout & afford checks
Stall economy
-
Pull items from inventory into stall stock
-
Set sell price (configurable max)
-
Open / close stall for customers
-
Earnings tracked on the stall
-
Sale history / inspect logs for owners & staff
Portable stalls
-
Item-based placement with ghost preview
-
Multiple stall models
-
Decorative props (counters, crates, etc.) with prop limits
-
Placement restrictions: roads, interiors, blacklisted areas, job/zone rules
-
Same shop flow as fixed market stalls
Admin
`/createmarketslot` | Create a new stall room/slot |
`/removemarketslot` | Remove a stall slot |
`/viewmarketstalls` | 3D overlay of stall owners / IDs |
`/setmarket [id\|auto]` | Force location or return to schedule |
`/banmarket` / `/unbanmarket` | Ban / unban from renting |
Technical
- **Frameworks:** Qbox → QB-Core → ESX (auto)
- **Inventory:** ox_inventory → qb/ps/lj → ESX (auto)
- **Target:** ox_target / qb-target (auto or forced)
- **Deps:** `ox_lib`, `oxmysql`
- Auto-creates MySQL tables (stalls, items, logs, bans, rooms, portable)
- ox_lib locales (EN included)
- Vanilla GTA stall props supported (`prop_gazebo_01` etc.) — no paid map required for base setup
Config highlights
Locations — markets, offsets, rooms/zones
OpenDays, HoursOpen / HoursClosed, switch interval
PurchasePrice, RentMoneyType
JobRestriction, BanLength, MaxItemPrice
ConfigPortable — enable portable, models, props, placement rules
Links
- Youtube : https://youtu.be/eRZr6THOPNk

