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.

2 LUA problems appear and I tried to fix it and nothing happens and one job doesn't work. Pls Halp

Discussion in 'DarkRP Modding Questions & Help' started by nikodemkmice, Mar 26, 2017.

  1. nikodemkmice

    nikodemkmice New Member

    Job that doesn't work is "Cyborg S.W.A.T"

    ERROR CODES:
    1. error - [C]:-1
    2. error - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530
    3. createJob - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:418
    4. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:141
    5. doInclude - [C]:-1
    6. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:137
    7. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:148
    8. unknown - gamemodes/darkrp/gamemode/cl_init.lua:53

    I did not modify simplerr.lua and a code appears what can I do?
    If you want me to give you code from a certain file please tell me and I will do so I would really appreciate it if you guys helped me out I have been stucked for 3 and a half days.

    JOB CODES:
    -- Put your Lua here
    --[[---------------------------------------------------------------------------
    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 your custom jobs under the following line:
    ---------------------------------------------------------------------------]]
    TEAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(255, 0, 0, 255),
    model = {"models/player/arctic.mdl"},
    description = [[CAN: RAID/MUG
    CANNOT: KIDNAP]],
    weapons = {"keys", "m9k_hk45", "lockpick", "keypad_cracker"},
    command = "thief",
    max = 4,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Gangsters"
    })
    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_glock", "m9k_famas", "stunstick", "door_ram", "weaponchecker"},
    command = "swat",
    max = 5,
    salary = 120,
    admin = 0,
    vote = false,
    hasLicense = true,
    category = "Civil Protection"
    })
    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_glock", "m9k_svu", "stunstick", "door_ram", "weaponchecker"},
    command = "swatsniper",
    max = 1,
    salary = 125,
    admin = 0,
    vote = true,
    hasLicense = true,
    category = "Civil Protection"
    })
    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_glock", "m9k_m4a1"},
    command = "swatl",
    max = 1,
    salary = 210,
    admin = 0,
    vote = true,
    hasLicense = true,
    category = "Civil Protection"
    })
    TEAM_PERGUARD = DarkRP.createJob("Personal Guard", {
    color = Color(0, 200, 50, 255),
    model = "models/player/barney.mdl",
    description = [[People pay you an amount of money to guard them on the street, or at home. You become a more personal body guard.]],
    weapons = {"m9k_deagle"},
    command = "persguard",
    max = 5,
    salary = 85,
    admin = 0,
    vote = false,
    hasLicense = true,
    category = "Civil Protection"
    })
    TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
    color = Color(170, 0, 0, 255),
    model = "models/player/combine_soldier.mdl",
    description = [[Being an 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 an admin.]],
    weapons = {},
    command = "adminonduty",
    max = 0,
    salary = 100,
    admin = 1,
    vote = false,
    hasLicense = false,
    category = "Staff on Duty"
    })
    TEAM_HADMIN = DarkRP.createJob("H-Admin On Duty", {
    color = Color(170, 0, 0, 255),
    model = "models/player/combine_super_soldier.mdl",
    description = [[Being a head 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 an admin.]],
    weapons = {},
    command = "hadminonduty",
    max = 0,
    salary = 200,
    admin = 1,
    vote = false,
    hasLicense = false,
    category = "Staff on Duty"
    })
    TEAM_HITMAN = DarkRP.createJob("Hitman", {
    color = Color(255, 0, 0, 255),
    model = "models/player/leet.mdl",
    description = [[People hire you to send people to a looong vacation.]],
    weapons = {"m9k_glock", "m9k_aw50"},
    command = "hitman",
    max = 1,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Gangsters"
    })
    TEAM_ASSASIN = DarkRP.createJob("Assasin", {
    color = Color(255, 0, 0, 255),
    model = "models/player/guerilla.mdl",
    description = [[People hire you to send people to a looong vacation.]],
    weapons = {"m9k_knife", "m9k_sig_p229r", "m9k_intervention"},
    command = "assasin",
    max = 2,
    salary = 65,
    admin = 0,
    vote = true,
    hasLicense = false,
    category = "Gangsters"
    })
    TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
    color = Color(30, 45, 105, 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_glock", "m9k_famas", "stunstick", "door_ram", "weaponchecker"},
    command = "swat",
    max = 5,
    salary = 120,
    admin = 0,
    vote = false,
    hasLicense = true,
    category = "Civil Protection"
    })
    TEAM_CYBSWAT = DarkRP.createJob("Cyborg S.W.A.T", {
    color = Color(0, 165, 255, 255),
    model = {"models/player/combine_super_soldier.mdl"},
    description = [[C:/> TERMINATE APPLICATION.GMOD.GANGSTERS]],
    weapons = {"m9k_m1918bar", "m9k_jackhammer", "arrest_stick", "unarrest_stick", "stunstick", "weaponchecker", "door_ram"},
    command = "cybswat",
    max = 1,
    salary = 65,
    admin = 0,
    vote = true,
    hasLicense = true,
    category = "Civil Protection",
    })
    --[[---------------------------------------------------------------------------
    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.Police = {
    [TEAM_POLICE] = true,
    [TEAM_CHIEF] = true,
    [TEAM_MAYOR] = true
    }

    GAMEMODE.Gangsters = {
    [TEAM_MOB] = true,
    [TEAM_GANGSTER] = true
    }

    --[[---------------------------------------------------------------------------
    Jobs that are hitmen (enables the hitman menu)
    ---------------------------------------------------------------------------]]
    DarkRP.addHitmanTeam(TEAM_MOB)
     
  2. Looks like you edited the core files, also nothing is wrong with the code.
    Also if you are using leaks check if those are the problems
     

Share This Page