gearConfiguration

Detailed Configuration Guide – Space Trucker

This document explains each configuration section so you can tailor the system to your server’s style and economy.


Main File: shared/config.lua

General Settings

config.Locale = 'pt-br' -- Sets the script language (files inside locales/)

config.Debug = {
    Enabled = false,       -- Enables general debug logs in console (F8)
    ShowF8Logs = true,     -- Shows prints in F8
    ShowServerLogs = true, -- Shows prints in the server console (cmd)
}

Tip: Keep Debug.Enabled = false in production to avoid console spam.


External Integrations (ExternalSystems)

Define which external systems your server uses.

Note: There is no direct config here for Banking or Target. The script uses standard framework exports or auto-detects ox_ systems when available.


Company Settings (Company)

Controls player company economy and limits.


Industries & Economy Configuration

Industries are the heart of Space Trucker. They are split into individual definitions (location, type) and global configuration (prices, blips, items).


1) File Locations

  • Global (Prices, Items, Blips): shared/config.lua

  • Individual Industries (Position, Stock): shared/industries/

    • register_primary_industries.lua – Primary industries (Oil, Ore, Farms)

    • register_secondary_industries.lua – Processing (Refineries, Factories)

    • register_tertiary_industries.lua – Final products

    • register_businesses.lua – Businesses that buy final products (Stores, Gas Stations)


2) Blip Configuration (Map Icons)

Blips are not configured inside each individual industry. They are defined globally inside shared/config.lua, under config.BlipConfig. The script chooses icons based on Transport Type or a Specific Item override.

Path: shared/config.lua (around line ~1060)

  • sprite: Icon ID (see FiveM blips reference)

  • color: Color ID

  • scale: Icon size (0.8 is the standard)

Display behavior: Cargo blips are set natively as 4 (map + minimap), and trade points as 5 (minimap only). To change this, edit client/c_utils.lua inside:

  • CreateCargoBlip

  • CreateTradePointBlip


3) Trading & Pricing (Economy)

The economy is controlled in shared/config.lua inside the config.IndustryItems table. Here you define base price range and profit margin for each item.

Path: shared/config.lua (around line ~442)

  • Price balancing: Adjust minPrice and maxPrice. The system fluctuates the real price inside this range based on stock.

  • Profit margin: Adjust percentProfit. Example: math.random(10, 20) / 100 generates profit between 10% and 20%.


4) Creating/Editing an Industry

To add a new industry to the map, edit one of the files in shared/industries/.

Example (inside register_primary_industries.lua):


Vehicle File: shared/vehicles_config.lua

This file defines all vehicles that can be used for missions and logistics operations.

Vehicle Structure


Adding New Vehicles (Mods)

  1. Get the vehicle spawn name (example: eurotruck)

  2. Copy an existing block in vehicles_config.lua

  3. Paste and change the key to ['eurotruck']

  4. Adjust capacity (balance it with the visual size)

  5. Adjust props positions (x, y, z) so boxes don’t float or clip into the cabin This requires in-game testing (trial and error).


Important Tip About transType

If you configure a vehicle with only LIQUIDS, it won’t be able to run crate or ore deliveries.

Make sure at least one low-level vehicle supports CRATE, so new players can start working immediately.

Last updated