Skills
Guide for editing the ranks that are available in the resource
This file can be located in peuren_electricianjob/shared/sh_main.lua.
You can edit the pre-configured skill levels or add your new skill levels by following the examples.
Config.Skills = {
["tools"] = { --This skill impacts the players ability to do the tool minigame
Icon = 'pi pi-wrench',
Title = 'Working with tools',
Description = 'Ability to do the tool minigame',
Levels = {
[1] = {-- [level number] = {}
minXP = 0,--The required minimum xp to unlock this level
timePerTask = 5, --Time it takes to choose the right tool
tasksToComplete = 5 --How many tasks the player has to complete to finish the minigame
},
[2] = {-- [level number] = {}
minXP = 1000,--The required minimum xp to unlock this level
timePerTask = 10, --Time it takes to choose the right tool
tasksToComplete = 4 --How many tasks the player has to complete to finish the minigame
},
[3] = {-- [level number] = {}
minXP = 5000,--The required minimum xp to unlock this level
timePerTask = 15, --Time it takes to choose the right tool
tasksToComplete = 3 --How many tasks the player has to complete to finish the minigame
},
},
GainPerAction = {min = 50, max = 100}, --XP you get after successfully completing the minigame
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
},
["fuzepattern"] = { --This skill impacts the players ability to do the fuze pattern memory minigame
Icon = 'pi-calculator',
Title = 'Fuze matching',
Description = 'Ability to do the fuze pattern memory minigame',
Levels = {
[1] = {-- [level number] = {}
minXP = 0,--The required minimum xp to unlock this level
patternLength = 2,
maxLevel = 1,
patternsToComplete = 3
},
[2] = {-- [level number] = {}
minXP = 1000,--The required minimum xp to unlock this level
patternLength = 2,
maxLevel = 1,
patternsToComplete = 3
},
[3] = {-- [level number] = {}
minXP = 5000,--The required minimum xp to unlock this level
patternLength = 2,
maxLevel = 1,
patternsToComplete = 3
},
},
GainPerAction = {min = 50, max = 100}, --XP you get after successfully completing the minigame
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
},
["cables"] = { --This skill impacts the players ability to do the cable defect checking minigame
Icon = 'pi pi-link',
Title = 'Wiring',
Description = 'Ability to do the cable defect checking minigame',
Levels = {
[1] = {-- [level number] = {}
minXP = 0,--The required minimum xp to unlock this level
cableSpeed = 15, --The speed of the cable checking
maxMissedDefects = 3,--How many defects the player can miss before failing the minigame
totalDefectsToSpawn = 20, --How many defects will spawn in total
scannerPosition = 25,---The position of the scanner in the minigame
},
[2] = {-- [level number] = {}
minXP = 1000,--The required minimum xp to unlock this level
cableSpeed = 15, --The speed of the cable checking
maxMissedDefects = 4,--How many defects the player can miss before failing the minigame
totalDefectsToSpawn = 15, --How many defects will spawn in total
scannerPosition = 25,---The position of the scanner in the minigame
},
[3] = {-- [level number] = {}
minXP = 5000,--The required minimum xp to unlock this level
cableSpeed = 10, --The speed of the cable checking
maxMissedDefects = 5,--How many defects the player can miss before failing the minigame
totalDefectsToSpawn = 10, --How many defects will spawn in total
scannerPosition = 25,---The position of the scanner in the minigame
},
},
GainPerAction = {min = 50, max = 100}, --XP you get after successfully completing the minigame
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
},
["distributor"] = { --This skill impacts the players ability to do the power distribution minigame
Icon = 'pi-align-justify',
Title = 'Distributing',
Description = 'Ability to do the power distribution minigame',
Levels = {
[1] = {-- [level number] = {}
minXP = 0,--The required minimum xp to unlock this level
maxOutageTime = 10, --The max time the player has to fix the outage
},
[2] = {-- [level number] = {}
minXP = 1000,--The required minimum xp to unlock this level
maxOutageTime = 15, --The max time the player has to fix the outa
},
[3] = {-- [level number] = {}
minXP = 5000,--The required minimum xp to unlock this level
maxOutageTime = 20, --The max time the player has to fix the outa
},
},
GainPerAction = {min = 50, max = 100}, --XP you get after successfully completing the minigame
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