1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Admin Only Jobs Broken

Discussion in 'DarkRP Modding Questions & Help' started by MrExHaLzZ, Apr 28, 2014.

  1. MrExHaLzZ

    MrExHaLzZ Member

    [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:32: unexpecte
    d symbol near ','
    1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0

    [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:28: '}' expec
    ted (to close '{' at line 15) near 'vote'
    1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0

    This happens when ever I try to add jobs and it started this when I tried to add swat jobs to my server

    Here is my jobs.lua file

    /*---------------------------------------------------------------------------
    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_PARKOUR = DarkRP.createJob('Parkour Master',
    color = Color(0, 0, 0, 255),
    model = 'models/player/p2_chell.mdl',
    description = [[Your A Parkour Master You Climb Up Walls Like A Fucking Spider.
    Parkour Master Rules
    1: You May Mug.
    2: You May Raid.
    3: The Max Mug Is 1000.]],
    weapons = {'climb_swep2', 'weapon_mad_knife', 'm9k_minigun', 'lockpick', 'keypad_cracker', 'unarrest_stick'},
    command = 'parkour master',
    max = 1,
    salary = 150,
    admin = 0,
    vote = false,
    hasLicense = false,
    customCheck = function(ply) return ply:GetNWString("usergroup") == "superadmin" end,
    CustomCheckFailMsg = "This Job Is For Super Admins Only!",
    PlayerLoadout = function(ply) ply:SetArmor(100),
    })
    TEAM_ADMIN = DarkRP.createJob('Admin On Duty', {
    color = Color(0, 0, 0, 255),
    model = 'models/player/combine_super_soldier.mdl',
    description = [[Your An Admin On Duty You Protect The Server From Rule Breakers.
    Admin On Duty Rules
    1: It Is A Slay Jail Kick Then Ban For Each Punishment On A Person.
    2: Don't False Ban People!]],
    weapons = {'unarrest_stick'},
    command = 'admin on duty',
    max = 2,
    salary = 120,
    admin = 0,
    vote = false,
    hasLicense = false,
    customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "admin" end,
    CustomCheckFailMsg = "This Job Is For Admins Only!"
    })
    TEAM_SUPER = DarkRP.createJob('Super Admin On Duty', {
    color = Color(0, 0, 0, 255),
    model = 'models/player/soldier_stripped.mdl',
    description = [[Your A Super Admin On Duty.
    Super Admin On Duty Rules
    1: No Rules Cause Were The Owners.]],
    weapons = {'unarrest_stick'},
    command = 'super admin on duty',
    max = 2,
    salary = 180,
    admin = 0,
    vote = false,
    hasLicense = false,
    customCheck = function(ply) return ply:GetNWString("usergroup") == "superadmin" end,
    CustomCheckFailMsg = "This Job Is For Super Admins Only!"
    })
    /*---------------------------------------------------------------------------
    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)
     
  2. TeamEnternode

    TeamEnternode New Member

    TEAM_PARKOUR = DarkRP.createJob('Parkour Master',

    Missing a { there buddy
     
  3. MrExHaLzZ

    MrExHaLzZ Member

    Ty
     
  4. MrExHaLzZ

    MrExHaLzZ Member

    It is saying this now

    [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:101: unexpect
    ed symbol near ','
    1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0
     
  5. [DG] Dr. CookieCaster

    [DG] Dr. CookieCaster Member Server Owner

    Are you sure that's your entire jobs.lua? Your error implies there are more than 101 lines due to the error being on line 101 yet what you posted is only 84 lines
     
  6. MrExHaLzZ

    MrExHaLzZ Member

    No that's It
     
  7. [GG]Tense!

    [GG]Tense! Member

    Better idea, use pastebin with like a 1 week stay, it'll preserve any blank-lines and helps us find exactly what line 101 is, OR you can upload the file here.
     

Share This Page