• [NEED FIX] DarkRP - Jobs not showing, No Lua Errors.
    4 replies, posted
I put a bunch of jobs at the same time on my server, And no errors that I know of in the code, And no lua errors in game show up. I haven't changed one single thing inside the DarkRP gamemode folder, and I put the jobs in darkrpmodification. Here is the "jobs.lua": [CODE]--[[--------------------------------------------------------------------------- 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: https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua For examples and explanation please visit this wiki page: http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields Add jobs under the following line: ---------------------------------------------------------------------------]] -- SWAT 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", "weapon_glock2", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"}, command = "swat", max = 2, salary = 120, admin = 0, vote = true, hasLicense = true, }) TEAM_SWAT_SNIPER = 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", "weapon_glock2", "ls_sniper", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"}, command = "swatsniper", max = 1, salary = 125, admin = 0, vote = true, hasLicense = true, }) TEAM_SWAT_LEADER = 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", "weapon_glock2", "weapon_ak472"}, command = "swatl", max = 1, salary = 210, admin = 0, vote = true, hasLicense = true, }) TEAM_SWAT_MEDIC = 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", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"}, command = "swatmedicr", max = 1, salary = 125, admin = 0, vote = true, hasLicense = true, }) TEAM_SWAT_COMMANDER = 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", "weapon_glock2", "ls_sniper", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"}, command = "swatcommander", max = 1, salary = 125, admin = 0, vote = true, hasLicense = true, }) -- Drug Dealer TEAM_DRUGDEALER = DarkRP.createJob("Drug Dealer", { color = Color(51, 204, 255, 255), model = "models/player/soldier_stripped.mdl", description = [[You sell drugs to the public, stay away from the police.]], weapons = {}, command = "drugdealer", max = 3, salary = 40, admin = 0, vote = false, hasLicense = true, }) TEAM_DRUGDEALER_BOSS = DarkRP.createJob("Drug Dealer Boss", { color = Color(51, 204, 255, 255), model = "models/player/soldier_stripped.mdl", description = [[You sell drugs to the public, You gather every Drug Dealer in town and give them different places to sell their drugs at. You can also sell drugs]], weapons = {}, command = "drugdealerboss", max = 1, salary = 40, admin = 0, vote = false, hasLicense = true, }) -- Mayor TEAM_MAYOR_BODYGUARD = DarkRP.createJob("Mayors BodyGuard", { color = Color(0,200,50,255), model = "models/player/barney.mdl", description = [[You are the Mayors private Bodyguard. Your job is to cover him with your life.]], weapons = {"weapon_deagle2"}, command = "mayorsbodyguard", max = 2, salary = 85, admin = 0, vote = false, hasLicense = true, }) TEAM_MAYOR_WIFE = DarkRP.createJob("First Lady", { color = Color(255,100,100,255), model = "models/player/alyx.mdl", description = [[You are the mayors daughter, Walk around and relax with your father, but be careful. People might kidnap you for exchange of cash!]], weapons = {}, command = "firstlady", max = 1, salary = 90, admin = 0, vote = false, hasLicense = false, }) -- Hitman 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 = {"weapon_glock2", "ls_sniper"}, command = "hitman", max = 1, salary = 65, admin = 0, vote = false, hasLicense = false, }) TEAM_HITMAN_PRO = 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 = {"weapon_glock2", "ls_sniper"}, command = "prohitman", max = 1, salary = 95, admin = 0, vote = false, hasLicense = false, }) -- Street Preformer TEAM_CITIZEN_PREFORMER = DarkRP.createJob("Street Performer", { color = Color(23, 0, 52, 255), model = "models/player/arctic.mdl", description = [[Use your talents on the street to earn money, Sing, Dance or maybe Tell a good joke!]], weapons = {}, command = "streetperformer", max = 2, salary = 20, admin = 0, vote = false, hasLicense = false, }) -- Thief TEAM_THIEF = DarkRP.createJob("Thief", { color = Color(0, 0, 0, 255), model = "models/player/arctic.mdl", description = [[You are a thief, rob people, break into houses and steal printers]], weapons = {"lockpick"}, command = "thief", max = 2, salary = 65, admin = 0, vote = false, hasLicense = false, }) TEAM_THIEF_LEADER = DarkRP.createJob("Thief Leader", { color = Color(0, 0, 0, 255), model = "models/player/arctic.mdl", description = [[You are a thief leader, rob people, break into houses and steal printers. You lead the other Thiefs]], weapons = {"lockpick"}, command = "thiefleader", max = 1, salary = 75, admin = 0, vote = false, hasLicense = false, }) TEAM_THIEF_SPECIALIST = DarkRP.createJob("Thief Specialist", { color = Color(0, 0, 0, 255), model = "models/player/arctic.mdl", description = [[You are a Specialist among the thiefs, rob people, break into houses and steal printers. Show the other thiefs how it's done!]], weapons = {"lockpick"}, command = "thiefspecialist", max = 1, salary = 105, admin = 0, vote = false, hasLicense = false, }) -- Gun Dealer TEAM_GUNDEALER_HEAVY = DarkRP.createJob("Heavy G
Check on [url]https://fptje.github.io/glualint-web/[/url] *cant check, on my phone* Look in server logs for server errors, The error is serverside so the error is not clientside <you will not see lua error ingame>
line 67 needs a {
[B]line 66 needs after "weapons =" a {[/B] here : [url]http://prntscr.com/e3tsz8[/url] and pls next time go on : [URL]https://fptje.github.io/glualint-web/[/URL] there ull see if theres any error or something else
FIXED
Sorry, you need to Log In to post a reply to this thread.