• Jobs not showing in the F4 menu
    43 replies, posted
So I currently have this problem of when someone and even my self hits the F4 menu and goes to "Jobs" there are none there. We have been trying different solutions such as adding jobs 1 by 1 re installing the server removing addon's stuff like that These are the current custom jobs that we added inside the DarkRP Modification addon [url]http://pastebin.com/4N2QQZu4[/url] Here are some of the error's we get [url]http://pastebin.com/266c1ane[/url] Server IP to check if im lying or not 178.32.122.186:25000 Please help [editline]11th August 2014[/editline] Here are some more common error's [CODE]1. unknown - addons/darkrpmodification-master/lua/darkrp_config/settings.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_config/settings.lua:301: '}' expected (to close '{' at line 294) near '"weapon_fists"' [2:47:12 PM] [JTF207]Msg.Ryan: 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:30: unexpected symbol near '='[/CODE]
Drug dealer on line 100 is missing ","
[QUOTE]Drug dealer on line 100 is missing ","[/QUOTE] No it's not as we checked
Well you didn't check well enough because it is.
New updated job's [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: ---------------------------------------------------------------------------*/ TEAM_SWAT = DarkRP.createJob("S.W.A.T", { color = Color(51, 102, 102, 255), model = {"models/player/urban.mdl"}, description = [[S.W.A.T Tactical Forces Unit. Very dangerous but very sweet job. Cleans the streets from high terror attacks. ]], weapons = {"weapon_real_cs_pumpshotgun", "weapon_real_cs_awp", "weapon_real_cs_smoke", "weapon_mp52", "weapon_fiveseven2", "arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "keypad_cracker"}, command = "swat", max = 3, salary = GAMEMODE.Config.normalsalary * 1.45, admin = 0, vote = true, hasLicense = true, }), TEAM_PRESIDENT = AddExtraTeam("President", { color = Color(255, 0, 0, 255), model = ("models/player/breen.mdl"), description = [[President of the United Garry's Mod sounds good, you are the most powerful Person on all Dark Night Gaming, you do what you want you make the law, what people can carry e.g weapons etc. ]], weapons = {} command = "president", max = 1, salary = 500, admin = 0, vote = true, }), TEAM_DAUGHTER = AddExtraTeam("President's Daughter", { color = Color(255, 0, 0, 255), model = "models/player/alyx.mdl", description = [[You are the president's daughter, Watch it, there might be someone who is after you to control the President]], weapons = {}, command = "daughter", max = 1, salary = 100, admin = 0, vote = false, }), TEAM_HITMAN = AddExtraTeam("Hit-man", { color = Color(153, 0, 255, 255), model = "models/player/leet.mdl", description = [[A Hitman, kills targeted people for money. DONT ABUSE OR RDM!!!!]], weapons = {"ls_sniper", "weapon_p2282"}, command = "hitman", max = 2, salary = 50, admin = 0, vote = false, }), TEAM_ARMY = AddExtraTeam("Soldier", { color = Color(102, 153, 0, 255), model = "models/player/dod_american.mdl", description = [[Fights for freedom. Cleans city streets from the highest terror attacks. ]], weapons = {"arrest_stick", "ls_sniper", "weapon_ak472", "door_ram", "lockpick", "med_kit", "stunstick", "unarrest_stick", "weapon_checker", "keypad_cracker"}, command = "army", max = 4, salary = 75, admin = 0, vote = true, }), TEAM_TERRORIST = AddExtraTeam("Terrorist", { color = Color(204, 153, 0, 255), model = "models/player/phoenix.mdl", description = [[Allah will be proud! You are Terrorist, destroy all Americans! LALALALALALA!!!!!!!! You kill: Cops, S.W.A.T, Mayors, and Soldiers. (Remember reason)Mostly hold them for ransom ]], weapons = {"weapon_real_cs_mac10", "weapon_p228"}, command = "terrorist", max = 4, salary = 40, admin = 0, vote = false, }), TEAM_BANKMANAGER = AddExtraTeam("Bank manager", { color = Color(255, 225, 0, 255), model = "models/player/breen.mdl", description = [[Keep other players money or props, or Vehicles safe Do not use it by your self! Or Take it! If they ask for it, you give them it! ]], weapons = {}, command = "bankmanager", max = 1, salary = 100, admin = 0, vote = true, }), TEAM_TERRORISTBOSS = AddExtraTeam("Terrorist Boss", { color = Color(204, 153, 0, 255), model = "models/player/leet.mdl", description = [[You are the Terrorist Boss, your job is to be the Terrorists Leader. Giving them Different kind of jobs. (Like: Kill the Mayor (Remember a reason), blow up the police station, or something like that. ]], weapons = {"door_ram", "lockpick", "stunstick", "unarrest_stick", "weapon_ak472", "weapon_deagle", "keypad_cracker"}, command = "terroristboss", max = 1, salary = 45, admin = 0, vote = false, }), TEAM_ROBBER = AddExtraTeam("Robber", { color = Color(204, 153, 0, 255), model = "models/player/arctic.mdl", description = [[1. Find a target, 2. Aim a gun at him/her 3. Force him/her to give you money (if him/her yell for police, kill him/her) 4. RUN!! ]], weapons = {"weapon_real_cs_knife", "keypad_cracker", "lockpick"}, command = "robber", max = 5, salary = 50, admin = 0, vote = false, }), TEAM_DRUG = AddExtraTeam("Drug Dealer" { color = Color(78, 45, 61, 255), model = "models/player/phoenix.mdl", description = [[Go around the city and ask people if they want some drugs, you make the prices. ]], weapons = {}, command = "drug", max = 2, salary = 50, admin = 0, vote = false, }), TEAM_SECRETAGENT = AddExtraTeam("Secret Agent", { color = Color(51, 102, 102, 255), model = "models/player/group01/male_01.mdl", description = [[You are a Secret Agent, you work for the President, and no one else! You take down Terrorists, and make sure there aren't going to be an attack, when your are done, you go under the ground ]], weapons = {"weapon_fiveseven2", "arrest_stick", "door_ram", "stunstick"}, command = "secretagent", max = 2, salary = 80, admin = 0, vote = true, }), TEAM_PROTHIEF = AddExtraTeam("Pro Thief", { color = Color(238, 99, 99, 255), model = "models/player/mossman.mdl", description = [[Pro Thief, Donator Job]], weapons = {}, command = "protheif", max = 4, salary = 60, admin = 0, vote = false, hasLicense = false, }), TEAM_SWATS = AddExtraTeam("Swat Sniper", { color = Color(0, 128, 128, 255), model = "models/player/mossman.mdl", description = [[Swat Sniper, can raid, can't mug, Donator Job]], weapons = {}, command = "swats", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, }), TEAM_SWATM = AddExtraTeam("Swat Medic", { color = Color(0, 128, 128, 255), model = "models/player/mossman.mdl", description = [[Swat Medic, Can raid, can't mug, Donator Job]], weapons = {}, command = "swatm", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, }), TEAM_SWATC = AddExtraTeam("Swat Chief", { color = Color(0, 128, 128, 255), model = "models/player/mossman.mdl", description = [[S.W.A.T Tactical Forces Unit. Even sweeter and even more dangerous! Cleans the streets from high terror attacks. Oh yeah, your incharge! ]], weapons = {}, command = "swatc", max = 2, salary = 125, admin = 0, vote = false, hasLicense = false, }), TEAM_RCITIZEN = AddExtraTeam("Respected Citizen", { color = Color(52, 124, 25, 255), model = "models/player/mossman.mdl", description = [[Can Raid and mug, Donator Job]], weapons = {}, command = "respectedcitizen", max = 6, salary = 100, admin = 0, vote = false, hasLicense = false, }), TEAM_HACKER = AddExtraTeam("Hacker", { color = Color(0, 255, 255, 255), model = "models/player/mossman.mdl", description = [[Hacker, Can raid and mug, need 2 people or more to raid, Non-Donator Job]], weapons = {}, command = "hacker", max = 2, salary = 60, admin = 0, vote = false, hasLicense = false, }), TEAM_MERC = AddExtraTeam("Mercenary", { color = Color(246, 34, 23, 255), model = "models/player/mossman.mdl", description = [[Hired for either team.... can raid if hired
Still missing a comma on the drug dealer line...
Ninja'd :v:
TEAM_DRUG = AddExtraTeam("Drug Dealer" { thats wrong its TEAM_DRUG = AddExtraTeam("Drug Dealer", {
[QUOTE=TehBrettJoker;45660692]TEAM_DRUG = AddExtraTeam("Drug Dealer" { thats wrong its TEAM_DRUG = AddExtraTeam("Drug Dealer", {[/QUOTE] Which is what I told you and you insisted that I was wrong...You need the comma there if you didnt understand.
My bad Bluebull I just relized that I didnt have it and thought I did It still gives me the error [CODE]1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:27: unexpected symbol near '='[/CODE]
what is line 27
" salary = GAMEMODE.Config.normalsalary * 1.45," is line 27 w/o the quotes
-snip-
I see -snip- everywhere.... what does that mean?
I think I found a small problem. [code] TEAM_SWAT = AddExtraTeam("S.W.A.T", { color = Color(51, 102, 102, 255), model = "models/player/urban.mdl", description = [[S.W.A.T Tactical Forces Unit. Very dangerous but very sweet job. Cleans the streets from high terror attacks. ]], weapons = {"weapon_real_cs_pumpshotgun", "weapon_real_cs_awp", "weapon_real_cs_smoke", "weapon_mp52", "weapon_fiveseven2", "arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "keypad_cracker"}, command = "swat", max = 3, salary = 75, admin = 0, vote = true, }), [/code] should be [code] TEAM_SWAT = AddExtraTeam("S.W.A.T", { color = Color(51, 102, 102, 255), model = "models/player/urban.mdl", description = [[S.W.A.T Tactical Forces Unit. Very dangerous but very sweet job. Cleans the streets from high terror attacks. ]], weapons = {"weapon_real_cs_pumpshotgun", "weapon_real_cs_awp", "weapon_real_cs_smoke", "weapon_mp52", "weapon_fiveseven2", "arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "keypad_cracker"}, command = "swat", max = 3, salary = 75, admin = 0, vote = true }) [/code] you don't need to add a comma after the last table value, nor do you need one after the end of a function. Change this on all of the jobs that did this. [QUOTE=bluebull107;45661180]I see -snip- everywhere.... what does that mean?[/QUOTE] it means disregard what they said, the information was proven irrelevant, incorrect, etc.
It doesn't matter if it's there or not.
We also have M9k weapons but the jobs are set to CSS realistic would that make it not show?
[QUOTE=koshaboy;45661202]We also have M9k weapons but the jobs are set to CSS realistic would that make it not show?[/QUOTE] if you don't have css realistic installed, yes, that could cause problems.
Also here is a new Error for ya guy's [4:22:10 PM] [JTF207]Msg.Ryan: 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:31: '}' expected (to close '{' at line 26) near 'command'
Is CSS Mounted correctly?
Indeed CSS is mounted correctly
Literally koshaboy the errors are telling you exactly what's wrong.
So we fixed line 26 but now its giving us line 21 [editline]11th August 2014[/editline] color = Color(51, 102, 102, 255), This job is SWAT
[QUOTE=koshaboy;45661304]So we fixed line 26 but now its giving us line 21 [editline]11th August 2014[/editline] color = Color(51, 102, 102, 255), This job is SWAT[/QUOTE] Post your current code and full errors
[CODE]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_SWAT = AddExtraTeam("S.W.A.T", { color = Color(51, 102, 102, 255), model = "models/player/urban.mdl", description = [[S.W.A.T Tactical Forces Unit. Very dangerous but very sweet job. Cleans the streets from high terror attacks. ]], weapons = {""}, command = "swat", max = , salary = 75, admin = 0, vote = true }), TEAM_PRESIDENT = AddExtraTeam("President", { color = Color(255, 0, 0, 255), model = ("models/player/breen.mdl"), description = [[President of the United Garry's Mod sounds good, you are the most powerful Person on all Dark Night Gaming, you do what you want you make the law, what people can carry e.g weapons etc. ]], weapons = {} command = "president", max = 1, salary = 500, admin = 0, vote = true, }), TEAM_DAUGHTER = AddExtraTeam("President's Daughter", { color = Color(255, 0, 0, 255), model = "models/player/alyx.mdl", description = [[You are the president's daughter, Watch it, there might be someone who is after you to control the President]], weapons = {}, command = "daughter", max = 1, salary = 100, admin = 0, vote = false, }), TEAM_HITMAN = AddExtraTeam("Hit-man", { color = Color(153, 0, 255, 255), model = "models/player/leet.mdl", description = [[A Hitman, kills targeted people for money. DONT ABUSE OR RDM!!!!]], weapons = {"ls_sniper", "weapon_p2282"}, command = "hitman", max = 2, salary = 50, admin = 0, vote = false, }), TEAM_ARMY = AddExtraTeam("Soldier", { color = Color(102, 153, 0, 255), model = "models/player/dod_american.mdl", description = [[Fights for freedom. Cleans city streets from the highest terror attacks. ]], weapons = {"arrest_stick", "ls_sniper", "weapon_ak472", "door_ram", "lockpick", "med_kit", "stunstick", "unarrest_stick", "weapon_checker", "keypad_cracker"}, command = "army", max = 4, salary = 75, admin = 0, vote = true, }), TEAM_TERRORIST = AddExtraTeam("Terrorist", { color = Color(204, 153, 0, 255), model = "models/player/phoenix.mdl", description = [[Allah will be proud! You are Terrorist, destroy all Americans! LALALALALALA!!!!!!!! You kill: Cops, S.W.A.T, Mayors, and Soldiers. (Remember reason)Mostly hold them for ransom ]], weapons = {"weapon_real_cs_mac10", "weapon_p228"}, command = "terrorist", max = 4, salary = 40, admin = 0, vote = false, }), TEAM_BANKMANAGER = AddExtraTeam("Bank manager", { color = Color(255, 225, 0, 255), model = "models/player/breen.mdl", description = [[Keep other players money or props, or Vehicles safe Do not use it by your self! Or Take it! If they ask for it, you give them it! ]], weapons = {}, command = "bankmanager", max = 1, salary = 100, admin = 0, vote = true, }), TEAM_TERRORISTBOSS = AddExtraTeam("Terrorist Boss", { color = Color(204, 153, 0, 255), model = "models/player/leet.mdl", description = [[You are the Terrorist Boss, your job is to be the Terrorists Leader. Giving them Different kind of jobs. (Like: Kill the Mayor (Remember a reason), blow up the police station, or something like that. ]], weapons = {"door_ram", "lockpick", "stunstick", "unarrest_stick", "weapon_ak472", "weapon_deagle", "keypad_cracker"}, command = "terroristboss", max = 1, salary = 45, admin = 0, vote = false, }), TEAM_ROBBER = AddExtraTeam("Robber", { color = Color(204, 153, 0, 255), model = "models/player/arctic.mdl", description = [[1. Find a target, 2. Aim a gun at him/her 3. Force him/her to give you money (if him/her yell for police, kill him/her) 4. RUN!! ]], weapons = {"weapon_real_cs_knife", "keypad_cracker", "lockpick"}, command = "robber", max = 5, salary = 50, admin = 0, vote = false, }), TEAM_DRUG = AddExtraTeam("Drug Dealer", { color = Color(78, 45, 61, 255), model = "models/player/phoenix.mdl", description = [[Go around the city and ask people if they want some drugs, you make the prices. ]], weapons = {}, command = "drug", max = 2, salary = 50, admin = 0, vote = false, }), TEAM_SECRETAGENT = AddExtraTeam("Secret Agent", { color = Color(51, 102, 102, 255), model = "models/player/group01/male_01.mdl", description = [[You are a Secret Agent, you work for the President, and no one else! You take down Terrorists, and make sure there aren't going to be an attack, when your are done, you go under the ground ]], weapons = {"weapon_fiveseven2", "arrest_stick", "door_ram", "stunstick"}, command = "secretagent", max = 2, salary = 80, admin = 0, vote = true, }), TEAM_PROTHIEF = AddExtraTeam("Pro Thief", { color = Color(238, 99, 99, 255), model = "models/player/mossman.mdl", description = [[Pro Thief, Donator Job]], weapons = {}, command = "protheif", max = 4, salary = 60, admin = 0, vote = false, hasLicense = false, }), TEAM_SWATS = AddExtraTeam("Swat Sniper", { color = Color(0, 128, 128, 255), model = "models/player/mossman.mdl", description = [[Swat Sniper, can raid, can't mug, Donator Job]], weapons = {}, command = "swats", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, }), TEAM_SWATM = AddExtraTeam("Swat Medic", { color = Color(0, 128, 128, 255), model = "models/player/mossman.mdl", description = [[Swat Medic, Can raid, can't mug, Donator Job]], weapons = {}, command = "swatm", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, }), TEAM_SWATC = AddExtraTeam("Swat Chief", { color = Color(0, 128, 128, 255), model = "models/player/mossman.mdl", description = [[S.W.A.T Tactical Forces Unit. Even sweeter and even more dangerous! Cleans the streets from high terror attacks. Oh yeah, your incharge! ]], weapons = {}, command = "swatc", max = 2, salary = 125, admin = 0, vote = false, hasLicense = false, }), TEAM_RCITIZEN = AddExtraTeam("Respected Citizen", { color = Color(52, 124, 25, 255), model = "models/player/mossman.mdl", description = [[Can Raid and mug, Donator Job]], weapons = {}, command = "respectedcitizen", max = 6, salary = 100, admin = 0, vote = false, hasLicense = false, }), TEAM_HACKER = AddExtraTeam("Hacker", { color = Color(0, 255, 255, 255), model = "models/player/mossman.mdl", description.. [4:35:28 PM] nial edwards: 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:21: unexpected symbol near ',' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:21: unexpected symbol near ',' [AddCSLuaFile] Couldn't find 'effects/ulx_fireworkstem/init.lua' ()[/CODE]
omg use code brackets Anyways, in the end of each table you have "vote = false/true," remove the ","
[QUOTE]omg use code brackets Anyways, in the end of each table you have "vote = false/true," remove the ","[/QUOTE] At the end of each line [code] salary = 45,[/code] So like that comma?? [editline]11th August 2014[/editline] We removed the comma's and nothing happened
[QUOTE=koshaboy;45661442]At the end of each line [code] salary = 45,[/code] So like that comma?? [editline]11th August 2014[/editline] We removed the comma's and nothing happened[/QUOTE] I have the feeling that you somehow fucked it up. 'nothing happened' meaning the same error? Either way, send the code (With brackets please)
[code]1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:17: '}' expected (to close '{' at line 15) near 'model'[/code]
OMG, the ERRORS ARE LITERALLY TELLING YOU WHATS WRONG.
Sorry, you need to Log In to post a reply to this thread.