• [DarkRPModification Problems] GMod DarkRP
    5 replies, posted
Hey, i put my jobs in jobs.lua but they wont show up :o list: [QUOTE]--[[--------------------------------------------------------------------------- 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: ---------------------------------------------------------------------------]] ------------ STAFF TEAMS -------------- TEAM_SADMIN = DarkRP.createJob("S-Admin On Duty", { color = Color(170, 0, 0, 255), model = {"models/player/combine_super_soldier.mdl" }, description = [[Being a super admin requires a great responsibility, when you become this job you have to take your job as an admin serious, and help the ones who is in need of a superadmin.]], weapons = {"arrest_stick", "unarrest_stick"}, command = "sadminonduty", max = 0, salary = 100, admin = 2, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsSuperAdmin() or ply:IsUserGroup("owner") end, CustomCheckFailMsg = "This job is for Staff only!" PlayerSpawn = function(ply) ply:GodEnable() end,} }) TEAM_ADMIN = DarkRP.createJob("Admin On Duty", { color = Color(255, 0, 0, 255), model = {"models/player/anon/anon.mdl",}, description = [[You are the Guy that keeps saving the day, just DONT Fuck up the Rules.]], weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "lockpick"}, command = "staff", max = 4, salary = GAMEMODE.Config.normalsalary * 1.45, admin = 1, vote = false, category = "Staff", hasLicense = true customCheck = function(ply) return ply:IsSuperAdmin() or ply:IsUserGroup("admin") or ply:IsUserGroup("owner") or ply:IsUserGroup("developer") or ply:IsUserGroup("admin+") end, CustomCheckFailMsg = "This job is for Staff only!" PlayerSpawn = function(ply) ply:GodEnable() end, }) TEAM_MOD = DarkRP.createJob("Mod On Duty", { color = Color(170, 0, 0, 255), model = {"models/player/combine_soldier_prisonguard.mdl"}, description = [[Being a mod requires a great responsibility, when you become this job you have to take your job as a mod serious, and help the ones who is in need of a mod.]], weapons = {"arrest_stick", "unarrest_stick"}, command = "modonduty", max = 0, salary = 100, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsSuperAdmin() or ply:IsUserGroup("moderator+") or ply:IsUserGroup("moderator+") end, CustomCheckFailMsg = "This job is for Staff only!" PlayerSpawn = function(ply) ply:GodEnable() end, }) ------------- SWAT TEAMS --------------- TEAM_SWAT = DarkRP.createJob("S.W.A.T", { color = Color(80, 45, 0, 255), model = {"models/player/swat.mdl"}, description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city.]], weapons = {"arrest_stick", "unarrest_stick", "m9k_m29satan", "m9k_mp5", "stunstick", "door_ram", "weaponchecker"}, command = "swat", max = 2, salary = 120, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATSNIPER = DarkRP.createJob("S.W.A.T Sniper", { color = Color(30, 45, 105, 255), model = {"models/player/riot.mdl"}, description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city. You are a Sniper Specialist]], weapons = {"arrest_stick", "unarrest_stick", "m9k_m29satan", "m9k_aw50", "m9k_mp5", "stunstick", "door_ram", "weaponchecker"}, command = "swatsniper", max = 1, salary = 125, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATLEADER = DarkRP.createJob("S.W.A.T Leader", { color = Color(30, 45, 105, 255), model = {"models/player/swat.mdl"}, description = [[ Do everything you can to keep the city safe. If theres no mayor, you're in charge.]], weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "m9k_ak47", "door_ram", }, command = "swatl", max = 1, salary = 210, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATMEDIC = DarkRP.createJob("S.W.A.T Medic", { color = Color(30, 45, 105, 255), model = {"models/player/riot.mdl"}, description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city. You are the medic in the group, you should provide medical help to your team]], weapons = "arrest_stick", "m9k_ak47", "stunstick", "door_ram", "weaponchecker", "med_kit"}, command = "swatsniper", max = 1, salary = 125, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATCOMMANDER = DarkRP.createJob("S.W.A.T Commander", { color = Color(30, 45, 105, 255), model = {"models/player/riot.mdl"}, description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city. You are The commander of the S.W.A.T team]], weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "m9k_m24", "m9k_an94", "stunstick", "door_ram", "weaponchecker", "m9k_m3"}, command = "swatsniper", max = 1, salary = 125, admin = 0, vote = true, hasLicense = true, customCheck = function(ply) return ply:IsSuperAdmin() or ply:IsUserGroup("admin") or ply:IsUserGroup("owner") or ply:IsUserGroup("developer") or ply:IsUserGroup("admin+") or ply:IsUserGroup("donator") end, CustomCheckFailMsg = "This job is for Donators/Staff only!" }) ---------- END OF SWAT TEAMS ----------- ------ START OF HITMAN SHIT ----------- TEAM_HITMAN = DarkRP.createJob("Hitman", { color = Color(0, 0, 0, 255), model = {"models/player/phoenix.mdl"}, description = [[People hire you to send people to a looong vacation.]], weapons = {"m9k_coltpython", "m9k_aw50"}, command = "hitman", max = 1, salary = 65, admin = 0, vote = false, hasLicense = false, }) TEAM_PHITMAN = DarkRP.createJob("Professional Hitman", { color = Color(0, 0, 0, 255), model = {"models/player/phoenix.mdl"}, description = [[People hire you to send people to a looong vacation. You are better then the average Hitmans in the town. You have a bigger salary.]], weapons = {"m9k_m92beretta", "m9k_psg1"}, command = "professionalhitman", max = 1, salary = 95, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsSuperAdmin() or ply:IsUserGroup("admin") or ply:IsUserGroup("owner") or ply:IsUserGroup("developer") or ply:IsUserGroup("admin+") or ply:IsUserGroup("donator") end, CustomCheckFailMsg = "This job is for Donators/Staff only!" }) ---- END OF HITMAN STUFF ---- ---- START OF MAYOR STUFF ----- TEAM_MS = DarkRP.createJob("Mayors Son", { color = Color(255,100,100,255), model = {"models/player/barney.mdl"}, description = [[You are the mayors son, Walk around and relax with your father, but be careful. People might kidnap you for exchange of cash!]], weapons = {}, command = "mayorsson", max = 1, salary = 90, admin = 0, vote = false, hasLicense = false }) TEAM_MD = DarkRP.createJob("Mayors Daughter", { color = Color(255,100,100,255), model = {"models/player/alyx.mdl"}, description =
Errors? Are you sure DarkRP modification is loading?
Gave this a quick glance and the first things I see that will throw errors are... L01 Add jobs under the following line: ... L19 CustomCheckFailMsg = "This job is for Staff only!" L20 PlayerSpawn = function(ply) ply:GodEnable() end,} Line 19, needs a comma at the end. Line 20 should have the comma on the other side of the curly bracket. You should really run this and paste your error logs so we can help you better. Note: (L01, L19, and L20 are there to indicate the line number.)
[url]http://pastebin.com/tLdSQpxL[/url]
[QUOTE=LuaTenshi;50852009]Gave this a quick glance and the first things I see that will throw errors are... L01 Add jobs under the following line: ... L19 CustomCheckFailMsg = "This job is for Staff only!" L20 PlayerSpawn = function(ply) ply:GodEnable() end,} Line 19, needs a comma at the end. Line 20 should have the comma on the other side of the curly bracket. You should really run this and paste your error logs so we can help you better. Note: (L01, L19, and L20 are there to indicate the line number.)[/QUOTE] Thanks [editline]9th August 2016[/editline] btw my darkmodification folder is called darkrpmodification-master
I send the correction of your file!
Sorry, you need to Log In to post a reply to this thread.