fiveLib Ownable Market
fiveLib Ownable Market is an advanced business management script that allows players to purchase, stock, and manage their own 24/7 or LTD markets.
Overview
- Player-Owned Businesses: Players can buy markets and set their own prices for items.
- Wholesale System: Owners must purchase stock from a wholesale location and have it delivered to their shop.
- Dynamic Inventory: Supports modern inventory systems (QB, OX, Quasar) for high-quality item imagery.
- Persistent Progress: All ownership and stock levels are saved in the database.
Features
- Multi-Framework: Out-of-the-box support for QB-Core, ESX, and Qbox.
- Management Menu: Dedicated UI for owners to manage funds, check stock, and order supplies.
- Delivery Missions: Owners or employees can pick up wholesale orders using a delivery vehicle.
- Customizable: Configurable market prices, wholesale costs, and interaction types.
Requirements
- Framework: QB-Core, ESX, or Qbox.
- Database:
oxmysql. - Interactions:
qb-target,ox_target, or standard 3D markers.
Installation
- Upload: Move the
fiveLib-marketfolder into yourresourcesfolder. - Database: Import the SQL file corresponding to your framework from the
sql/folder. - Register: Add the following to your
server.cfg:ensure fiveLib-Ownable Market - Configure: Set your framework and interaction type in
shared/config.lua. - Restart: Restart the server or run
ensure fiveLib-Ownable Market.
Configuration
Settings are found in shared/config.lua.
Core Settings
Framework: Set to'qb-core','qbox', or'esx'.InventoryPath: Path for item images (e.g.,nui://ox_inventory/web/images/).InteractionType: Choose between'qb-target','ox-target', or'marker'.
Market Settings
MarketPrice: Cost for a player to purchase an unowned market.MaxStock: Maximum amount of stock a single item can have.WholesaleItems: List of items available for owners to purchase, including min/max price limits.
Locations
MarketLocations: Detailed coordinates for the shop, purchase point, management menu, and delivery drop-off.Delivery: Settings for the wholesale pickup point and delivery vehicle (bensonby default).
Framework Support
- QB-Core: Full support including character info and accounts.
- Qbox: Native support via bridge.
- ESX: Full support for ESX legacy and standard versions.
SQL Setup
This resource requires importing the correct SQL schema for your framework. It creates:
- Tables for market ownership status.
- Tables for tracking stock levels per market.
Usage
- Customers: Walk into a market and use the target (or marker) to browse items.
- Owners:
- Purchase an unowned market at the management point.
- Open the Management Menu to order stock.
- Pick up the delivery truck at the wholesale warehouse and drive it to the shop.
- Set sale prices for your items to maximize profit.
Support
Support is provided via our Discord Server.