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

The 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 = false
  • Enables debug prints in server/client console

  • Recommended:

    • false for live servers

    • true for testing & development


🎯 Target & Screen Effects

  • UseTarget

    • Enables interaction via qb-target / ox_target

    • Set to false if 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