• Having a problem with custom jobs on my server can you guys help
    6 replies, posted
/*--------------------------------------------------------------------------- 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_DOGE = AddExtraTeam("Jedi Master Doge", Color(0, 0, 0, 255), "models/player/b4p/b4p_bobafett.mdl", [[Jedi Master Doge The Ultimate Jedi]], {"weapon_lightsaber","weapon_hack_phone","m9k_honeybadger","weapon_752_westar34"}, "doge", 1, 1000, 2, false, true, false) TEAM_SWAT = AddExtraTeam("Swat", Color(0, 0, 204, 255), "models/player/riot.mdl", [[You Are There When The CP cant get the job done!]], {"door_ram","stunstick","unarrest_stick","arrest_stick","weapon_real_cs_m4a1","weapon_real_cs_p228"}, "swat", 5, 100, 0, true, true, false) TEAM_RAPIST = AddExtraTeam("Rapist", Color(0, 255, 255, 255), "models/player/hostage/hostage_03.mdl", [[Must advert Rape. One Minute Rape Cooldown. Rape everyone in sever for the win :3]], {"weapon_rape"}, "rapist", 2, 75, 0, false, false, false) TEAM_PROSTITUTE = AddExtraTeam("Prostitute", Color(255, 0, 0, 255), "models/player/miku.mdl", [[Take your date to a private location and offer your services]], {"weapon_rape"}, "prostitute", 2, 100, 0, false, false, false) TEAM_HITMAN = AddExtraTeam("Hitman", Color(204, 51, 204, 255), "models/player/agent_47.mdl", [[Classic Good Ol\' Hitman]], {"m9k_model500","m9k_vector"}, "hitman", 2, 35, 0, false, false, false) TEAM_PIMP = AddExtraTeam("Pimp", Color(0, 255, 51, 255), "models/grandtheftauto5/michael.mdl", [[Pimp your nice chicks out for cash.]], {"m9k_coltpython"}, "pimp", 1, 150, 0, false, false, false) TEAM_SWAT = AddExtraTeam("Swat Medic", Color(0, 0, 204, 255), "models/player/riot.mdl", [[You Are There When The CP cant get the job done!]], {"door_ram","weapon_medkit","stunstick","unarrest_stick","arrest_stick","weapon_real_cs_m4a1","weapon_real_cs_p228"}, "swat", 5, 100, 0, true, true, false) TEAM_PET = AddExtraTeam("Pet", Color(255, 204, 51, 255), "models/smashbros/lucario_player/lucario_player.mdl", [[Your a pet!]], {}, "pet", 2, 10, 0, false, false, false) TEAM_TERRORIST = AddExtraTeam("Terrorist", Color(204, 153, 153, 255), "models/player/cell11.mdl", [[A terrorist! Jihad CoolDown 2 minutes]], {"weapon_jihadbomb","m9k_ak47"}, "terrorist", 3, 25, 0, true, false, false) TEAM_DOOKU = AddExtraTeam("Count Dooku", Color(204, 0, 0, 255), "models/starwars/dooku.mdl", [[Count Dooku The Elegent Sith Lord]], {"weapon_lightsaber"}, "dooku", 1, 175, 0, true, false, false) TEAM_YODA = AddExtraTeam("Jedi Master Yoda", Color(0, 255, 0, 255), "models/starwars/yoda.mdl", [[Short but powerful Jedi Master Joda]], {"weapon_lightsaber"}, "yoda", 1, 120, 0, false, false, false) TEAM_HK-47 = AddExtraTeam("HK-47", Color(153, 0, 0, 255), "models/hk-47.mdl", [[A personal guard to whom you chose.]], {"weapon_752_e5","weapon_752_dc17m_sn","weapon_752_elg3a"}, "hk-47", 1, 100, 0, false, false, false) TEAM_TLEADER = AddExtraTeam("Terrorist Leader", Color(204, 153, 0, 255), "models/player/cell12.mdl", [[Terrorist Leader controls all terrorist activates on server]], {"weapon_jihadbomb","m9k_ak47","m9k_milkormgl","m9k_nerve_gas"}, "tleader", 1, 145, 0, false, false, {Terrorist}) /*--------------------------------------------------------------------------- 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_MOB) DarkRP.addHitmanTeam(TEAM_HITMAN)
Why aren't you using the DarkRP job format? [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Edit: Also use code tags, shit's annoying.
Ill see if it fixes it, Thanks. [editline]5th August 2014[/editline] Did it like this still broken /*--------------------------------------------------------------------------- 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_DOGE = AddExtraTeam("Jedi Master Doge", Color(0, 0, 0, 255), "models/player/b4p/b4p_bobafett.mdl", [[Jedi Master Doge The Ultimate Jedi]], {"weapon_lightsaber","weapon_hack_phone","m9k_honeybadger","weapon_752_westar34"}, "doge", 1, 1000, 2, false, true, false) TEAM_SWAT = AddExtraTeam("Swat", Color(0, 0, 204, 255), "models/player/riot.mdl", [[You Are There When The CP cant get the job done!]], {"door_ram","stunstick","unarrest_stick","arrest_stick","weapon_real_cs_m4a1","weapon_real_cs_p228"}, "swat", 5, 100, 0, true, true, false) TEAM_RAPIST = AddExtraTeam("Rapist", Color(0, 255, 255, 255), "models/player/hostage/hostage_03.mdl", [[Must advert Rape. One Minute Rape Cooldown. Rape everyone in sever for the win :3]], {"weapon_rape"}, "rapist", 2, 75, 0, false, false, false) TEAM_PROSTITUTE = AddExtraTeam("Prostitute", Color(255, 0, 0, 255), "models/player/miku.mdl", [[Take your date to a private location and offer your services]], {"weapon_rape"}, "prostitute", 2, 100, 0, false, false, false) TEAM_HITMAN = AddExtraTeam("Hitman", Color(204, 51, 204, 255), "models/player/agent_47.mdl", [[Classic Good Ol\' Hitman]], {"m9k_model500","m9k_vector"}, "hitman", 2, 35, 0, false, false, false) TEAM_PIMP = AddExtraTeam("Pimp", Color(0, 255, 51, 255), "models/grandtheftauto5/michael.mdl", [[Pimp your nice chicks out for cash.]], {"m9k_coltpython"}, "pimp", 1, 150, 0, false, false, false) TEAM_SWAT = AddExtraTeam("Swat Medic", Color(0, 0, 204, 255), "models/player/riot.mdl", [[You Are There When The CP cant get the job done!]], {"door_ram","weapon_medkit","stunstick","unarrest_stick","arrest_stick","weapon_real_cs_m4a1","weapon_real_cs_p228"}, "swat", 5, 100, 0, true, true, false) TEAM_PET = AddExtraTeam("Pet", Color(255, 204, 51, 255), "models/smashbros/lucario_player/lucario_player.mdl", [[Your a pet!]], {}, "pet", 2, 10, 0, false, false, false) TEAM_TERRORIST = AddExtraTeam("Terrorist", Color(204, 153, 153, 255), "models/player/cell11.mdl", [[A terrorist! Jihad CoolDown 2 minutes]], {"weapon_jihadbomb","m9k_ak47"}, "terrorist", 3, 25, 0, true, false, false) TEAM_DOOKU = AddExtraTeam("Count Dooku", Color(204, 0, 0, 255), "models/starwars/dooku.mdl", [[Count Dooku The Elegent Sith Lord]], {"weapon_lightsaber"}, "dooku", 1, 175, 0, true, false, false) TEAM_YODA = AddExtraTeam("Jedi Master Yoda", Color(0, 255, 0, 255), "models/starwars/yoda.mdl", [[Short but powerful Jedi Master Joda]], {"weapon_lightsaber"}, "yoda", 1, 120, 0, false, false, false) TEAM_HK-47 = AddExtraTeam("HK-47", Color(153, 0, 0, 255), "models/hk-47.mdl", [[A personal guard to whom you chose.]], {"weapon_752_e5","weapon_752_dc17m_sn","weapon_752_elg3a"}, "hk-47", 1, 100, 0, false, false, false) TEAM_TLEADER = AddExtraTeam("Terrorist Leader", Color(204, 153, 0, 255), "models/player/cell12.mdl", [[Terrorist Leader controls all terrorist activates on server]], {"weapon_jihadbomb","m9k_ak47","m9k_milkormgl","m9k_nerve_gas"}, "tleader", 1, 145, 0, false, false, {Terrorist}) /*--------------------------------------------------------------------------- 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_MOB) DarkRP.addHitmanTeam(TEAM_HITMAN) [editline]5th August 2014[/editline] Can anyone help me with these jobs :P
I'd suggest going over all of them again. Do you get any errors? Post them if there are. (only errors related to the job file) I believe there is an online job creator that works pretty well... Maby use that?
[QUOTE=Zephruz;45601873]Why aren't you using the DarkRP job format? [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url][/QUOTE]
I have been using the online job creator then they told me to use the DarkRp job format im confused
Use the format linked in the quote I just made.
Sorry, you need to Log In to post a reply to this thread.