âš™ī¸Configuration

Script Configuration

You can find all the available configuration inside the config.lua file.

Config.VehicleModel = "journey" --Model of the RV vehicle
Config.LabModel = "caravan_shell" --Shell model used for the interior of the RV

Config.MoneyAccount = "bank" --Bank Accounts used for the shop and upgrades.

Config.Stations = { --All of the stations
    -- One of the station configurations. It's the exact same for the other ones.
    ["extractor"] = { -- Station code name
        skillcheck = true, -- True = Skillcheck, False = Progressbar
        objects = { --Objects of the station (Can be multiple)
            {
                model = "v_ret_ml_tablec",
                offsets = {x = 4.79, y = -1.14, z = -1.46, h = 90}
            }
        },
        items = {
            required = { --Required Items for the production
                ["pfedpills"] = {label = "Pseudoephedrine Pills", count = 1},
                ["methanol"] = {label = "Methanol", count = 2},
                ["acetone"] = {label = "Acetone", count = 2},
                ["toluene"] = {label = "Toluene", count = 1},
            },
            rewards = { --Rewards of the production
                ["pfed"] = {label = "Pseudoephedrine", count = 2},
            }
        },
        levels = { --Upgrade levels
            [1] = { --Level
                stats = {
                    multiplier = 1, --How much product can you create in a single production cycle.
                    difficulty = "hard" --Difficulty of the skillcheck
                },
                upgrade = { --Upgrade cost
                    price = 5000,
                    items = {
                        {item = "meth_extractor", count = 1, label = "Extractor"}
                    }
                }
            },
            [2] = {
                stats = {
                    multiplier = 2,   
                    difficulty = "medium"
                },
                upgrade = {
                    price = 10000,
                    items = {
                        {item = "meth_extractor", count = 1, label = "Extractor"}
                    }
                }
            },
            [3] = {
                stats = {
                    multiplier = 3,   
                    difficulty = "easy"
                },
                upgrade = {
                    price = 15000,
                }
            }
        }
    },
}

Config.Shop = { --Shop Configuration
    Pickups = { --Shop purchase pickup locations
        blip = { --Pickuop locations blip settings
            label = "Package Pickup",
            sprite = 478,
            color = 31,
            size = 0.8
        },
        objects = { --Objects of the pickup. (Can be multiple)
            {
                model = "v_ind_cf_meatbox",
                offsets = {x = 0, y = 0, z = 0, h = 0.0}
            },
        },
        positions = { --All available pickup positions. 
            --Please keep busy = false in the configuration.
            {vec3 = vector3(-1529.86, -2835.59, 13.7), busy = false}
        }
    },
    Items = { --All items available for purchase in the shop.
        ["meth_extractor"] = {label = "Meth Extractor", price = 10000},
        ["meth_distillator"] = {label = "Meth Distillator", price = 15000},
        ["meth_reactor"] = {label = "Meth Reactor", price = 25000},
        ["meth_crystallizator"] = {label = "Meth Crystallizator", price = 20000},
        ["pfedpills"] = {label = "Pseudoephedrine Pills", price = 150},
        ["distilledwater"] = {label = "Distilled Water", price = 50},
        ["iodine"] = {label = "Iodine Crystals", price = 100},
        ["toluene"] = {label = "Toluene", price = 150},
        ["acetone"] = {label = "Acetone", price = 150},
        ["gasmask"] = {label = "Gas Mask", price = 1000},
        ["methanol"] = {label = "Methanol", price = 200},
        ["redp"] = {label = "Red Phosphorus", price = 200},
    }
}

Config.Selling = { --Selling Configuration
    enabled = true, -- Is selling through laptop enabled?
    unitPrice = {min = 15000, max = 20000}, --Price per unit of methbag
    copsChance = 30, --Chance that cops will be alerted about the drug trade.
    waitingTime = 900000, --How much the buyer waits before he cancels the trade.
    moneyAccount = "cash", --In which money account the player is rewarded.
    blip = { --Blip settings for the drop-off point
        label = "Product Drop-off",
        sprite = 501,
        color = 32,
        size = 0.8
    },
    points = { --Locations of drop-off points.
        {
            coords = vec3(-1448.2416, -3074.5278, 13.9521), 
            ped = {
                pos = vec3(-1448.2416, -3074.5278, 12.9521),
                heading = 0.0,
                model = "g_m_m_chigoon_02",
            },
            --Please keep busy = false in the configuration.
            busy = false
        }
    }
}

Locale

You can edit all of the texts of the script in the locale.lua file.

Note: Some of interaction labels that are used for DrawText (if you're not using a target system) wil have to be changed in the main/client/interactions.lua file.

Last updated