• Jobs don't work in DarkRP 2.5.0 ?
    6 replies, posted
I trying everthing is it right what i'm doing? I disable some of the default jobs and change like 2 of them Must i place them in jobs.lua? I did it but the jobs can't show :( /*--------------------------------------------------------------------------- DarkRP custom jobs --------------------------------------------------------------------------- This file contains your custom jobs. This file should also contain jobs from DarkRP that you edited. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the job to this file and edit it. The default jobs can be found here: [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url] For examples and explanation please visit this wiki page: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Add jobs under the following line: ---------------------------------------------------------------------------*/ TEAM_POLICE = DarkRP.createJob('Police', { color = Color(236, 100, 100, 0, 17, 255), model = {models/player/nypd/cop_02.mdl, models/player/nypd/cop_03.mdl} description = [[The Police protecting the citizens, you arresting who doing crime.]], weapons = {'weapon_fists', 'weapon_m42', 'arrest_stick', 'unarrest_stick', 'stunstick'}, command = 'police', max = 5, salary = 65, admin = 0, vote = true, hasLicense = true, TEAM_CHIEF = DarkRP.createJob('Police Chief', { color = Color(236, 100, 100, 0, 17, 255), model = models/player/nypd/cop_02.mdl, description = [[The Chief of all the police unit, you arresting who doing crimes and selling ilegal things.]], weapons = {'weapon_ak472', 'weapon_fists', 'arrest_stick', 'unarrest_stick', 'stunstick', 'weapon_deagle2', 'weapon_checker'}, command = 'chiefpolice', max = 1, salary = 85, admin = 0, vote = false, hasLicense = true, TEAM_HITMAN = DarkRP.createJob('Hitman', { color = Color(31, 80, 95, 255), model = models/player/leet.mdl, description = [[The hitman gets paid for getting a hit on somebody.]], weapons = {'weapon_ak472', 'weapon_m42', 'weapon_fists'}, command = 'hitman', max = 1, salary = 60, admin = 0, vote = true, hasLicense = false, TEAM_MECHANIC = DarkRP.createJob('Mechanic', { color = Color(31, 80, 95, 255), model = models/player/Group01/Male_02.mdl, description = [[Mechanic takes care of cars to repair and refuel for free or paid, they can work with gangsters.]], weapons = {'weapon_fists', 'weapon_scarrefuel', 'weapon_scarrepair'}, command = 'mechanic', max = 2, salary = 60, admin = 0, vote = false, hasLicense = false, TEAM_TAXI = DarkRP.createJob('Taxi Driver', { color = Color(31, 80, 95, 255), model = models/player/Group01/Male_02.mdl, description = [[Buy a Taxi and drive people where they need to be, for free or for money.]], weapons = {'weapon_fists'}, command = 'taxi', max = 2, salary = 60, admin = 0, vote = false, hasLicense = false, TEAM_CAR = DarkRP.createJob('Car Dealer', { color = Color(31, 80, 95, 255), model = models/player/Group01/Male_02.mdl, description = [[You sell cars to people.]], weapons = {'weapon_fists'}, command = 'car', max = 2, salary = 75, admin = 0, vote = false, hasLicense = false, /*--------------------------------------------------------------------------- Define which team joining players spawn into and what team you change to if demoted ---------------------------------------------------------------------------*/ GAMEMODE.DefaultTeam = TEAM_CITIZEN /*--------------------------------------------------------------------------- Define which teams belong to civil protection Civil protection can set warrants, make people wanted and do some other police related things ---------------------------------------------------------------------------*/ GAMEMODE.CivilProtection = { [TEAM_POLICE] = true, [TEAM_CHIEF] = true, [TEAM_MAYOR] = true, } /*--------------------------------------------------------------------------- Jobs that are hitmen (enables the hitman menu) ---------------------------------------------------------------------------*/ DarkRP.addHitmanTeam(TEAM_HITMAN) [editline]3rd May 2014[/editline] Nobody? I really need help :(
You need to post any errors you're getting.
[QUOTE=Mors Quaedam;44711005]You need to post any errors you're getting.[/QUOTE] I got no errors just the jobs it did don't show but sometimes i get errors and it says like I need to remove something to fix it. My english is not so good :S
Can somebody help? I really want make my jobs fully working
Still no help? Please help! Answer if you know a solution!
Welcome to Facepunch! Each and every single one of those create job statements aren't completed. you're missing the end of the table: }, and the end of the function argument container: )... Here's how to create a job: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Please surround code using [code] tags. Also, the DarkRP Help thread is here for future reference: http://facepunch.com/showthread.php?t=1249475
[QUOTE=Acecool;44729805]Welcome to Facepunch! Each and every single one of those create job statements aren't completed. you're missing the end of the table: }, and the end of the function argument container: )... Here's how to create a job: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Please surround code using [code] tags. Also, the DarkRP Help thread is here for future reference: http://facepunch.com/showthread.php?t=1249475[/QUOTE] Thanks! I may send private message to you if something i wrong :)
Sorry, you need to Log In to post a reply to this thread.