Job ranks

Guide for editing the ranks that are available in the resource

This file can be located in peuren_towjob/shared/sh_main.lua.

You can edit the pre-configured rank levels or add your new rank levels by following the examples.

Config.Ranks = {
    Levels = {
        [1] = {-- [level number] = {}
            minXP = 0,--The required minimum xp to unlock this level
            name = 'towing',
            icon = "pi pi-car",
            label = "Tow Vehicles",
            description = 'Ability to tow vehicles'
        },
        [2] = {-- [level number] = {}
            minXP = 1000,--The required minimum xp to unlock this level
            name = 'flat_tyre',
            icon = "pi pi-circle",
            label = "Flat tire Repairs",
            description = 'Ability to repair flat tyres'
        },
        [3] = {-- [level number] = {}
            minXP = 5000,--The required minimum xp to unlock this level
            name = 'dead_battery',
            icon = "pi pi-wrench",
            label = "Battery boosting",
            description = 'Ability to boost dead vehicle batteries'
        },
    },
    GainPerAction = { min = 50, max = 100 }, --XP you get after successfully completing a job call
    LoseOverTime = { minHours = 48, amount = 20 } --How much hours required to pass before you start losing XP. Amount = the amount of XP lost each hour. --  -Use false to disable
}

Job problems

This file can be located in peuren_towjob/shared/sh_locationslua.

Config.ClientProblems = {
    ['dead_battery'] = {
        clientStatement = 'I think my battery is dead, could you jump it?',
        icon = "pi pi-wrench",
        payout = { min = 100, max = 200 },
        requiredLevel = 3,
        tool = 'booster',
        target = {
            type = 'bone',
            icon = 'fas fa-charging-station',
            label = 'Boost battery',
            progress = 'Boosting battery...',
            animation = {
                dict = "mini@repair",
                anim = "fixing_a_ped"
            },
            time = 5000,
            args = 'bonnet'
        }
    },
    ['flat_tyre'] = {
        clientStatement = 'One of my tyres are flat, could you fix it?',
        icon = "pi pi-circle",
        payout = { min = 100, max = 250 },
        requiredLevel = 2,
        tool = 'tyre_repairkit',
        damage = {
            flatTyre = true
        },
        target = {
            type = 'bone',
            icon = 'fas fa-wrench',
            label = 'Fix flat tyre',
            progress = 'Fixing flat tyre...',
            animation = {
                dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@",
                anim = "machinic_loop_mechandplayer",
            },
            time = 5000,
            args = { 'wheel_lf', 'wheel_rf', 'wheel_lr', 'wheel_rr' }
        }
    },
    ['radiator_exploded'] = {
        clientStatement = 'My radiator exploded, I need to tow my car to a mechanic!',
        icon = "pi pi-car",
        payout = { min = 200, max = 300 },
        requiredLevel = 1,
        needTow = true,
        damage = {
            engineHealth = 300,
        },
    }
}

Last updated