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.

Can't change custom job

Discussion in 'DarkRP Modding Questions & Help' started by T3AY0, Sep 30, 2018.

Tags:
  1. T3AY0

    T3AY0 New Member

    I can change to the default jobs but i can't change to my custom jobs.
    Also I don't get any errors.
    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_CADET = DarkRP.createJob("Cadet", {
    color = Color(20, 150, 20, 255),
    model = {"models/reizer_cgi_p2/clone_trp/clone_trp.mdl", },
    description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
    weapons = {},
    command = "cadet",
    max = 0,
    salary = 5,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Cadet",
    })






    --[[---------------------------------------------------------------------------
    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. Paco

    Paco Member

    Umm I don't get it what's really a problem ? Also did you made that Category in categories.lua ?
     

Share This Page