Advanced Configuration
⚙️ Configuration Guide (Config.lua)
Moon Logistics is designed to be fully configurable. Almost every part of the system—jobs, items, warehouses, trucker routes, restaurants, and AI orders—can be customized through the config.lua file.
This guide explains each section clearly, what it does, and how you can modify it safely.
🧩 Step 2: Configure the config.lua File
config.lua FileThe config.lua file controls how Moon Logistics behaves on your server.
You can add, remove, or adjust values without touching any core logic.
🐞 General Settings
Config.Debug = falseEnables debug prints in server/client console
Recommended:
falsefor live serverstruefor testing & development
🎯 Target & Screen Effects
UseTarget
Enables interaction via
qb-target / ox_targetSet to
falseif you prefer key-based interaction
UseScreenFade
Smooth fade in/out during warehouse teleport
🚪 Warehouse Teleport Locations
Controls warehouse entry & exit
You can:
Rename labels
Change teleport coordinates
💡 Tip: Add more entries to support multiple logistics hubs
💻 Warehouse Laptop Access
Defines who can access the warehouse management laptop
Options:
job = "warehouse"→ only warehouse employees
🚚 Trucker Job Configuration
This section controls everything related to the trucker job:
Key Options
Sign-in location – Where truckers start work
Truck spawn location – Where the delivery truck appears
Return location – Where the truck must be returned to get paid
Truck model – Change to any GTA vehicle
Payment System
Base payment per delivery
Extra pay based on distance traveled
Encourages long-haul routes
📦 Warehouse Storage Chests
Defines physical storage points inside the warehouse
Each chest:
Has its own location
Accepts only specific items
You can:
Add more chests
Change allowed items
Create category-based storage (meat, dairy, vegetables)
📦 Packing Table
Used to pack goods for delivery
Usually restricted to warehouse employees
You can move or duplicate this for larger warehouses
🚛 Delivery Pallet Location
Where packed orders are placed
Trucker deliveries are collected from here
👤 Stock Refill Ped
NPC responsible for warehouse stock refills
Can be used for:
Buying stock
Triggering AI supply
Model and location are fully customizable
🍔 Restaurants & Businesses
This defines which businesses can receive deliveries.
Per Restaurant
Job name (business job)
Delivery location
Allowed items
Ped delivery location (optional)
💡 You can:
Add unlimited restaurants
Restrict what items they can order
Support custom MLOs
📉 Low Stock Bonus System
Encourages players to deliver rare / low-stock items
Automatically increases payout when stock is low
📦 Warehouse Stock Items
Each stock item defines:
Item name (must exist in inventory)
Base price
Minimum stock threshold
Starting warehouse stock
You can:
Add new items
Adjust economy balance
Control scarcity
🤖 AI Order System
Automatically generates delivery orders
Keeps the logistics system active even with low players
Fully adjustable:
Order count
Interval timing
Item quantities
Price multiplier
✅ Summary
Moon Logistics is designed to be:
🔧 Highly configurable
🧠 Easy to understand
📈 Scalable for large RP servers
You can customize:
Jobs
Items
Warehouses
Restaurants
AI economy behavior —all from
config.lua, without touching core code.
Last updated