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.

HURP WITH LE JOBSZ

Discussion in 'DarkRP Modding Questions & Help' started by NxtDot, Sep 17, 2015.

  1. NxtDot

    NxtDot New Member

    they wont work ,-,

    --[[---------------------------------------------------------------------------
    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_CHEMIST = DarkRP.createJob("Chemist"),
    color= Color(0, 204, 153, 255),
    model = "models/player/eli.mdl",
    description = [[You are a chemist! You are focusing on making
    drugs selling it for some good profit!]],
    command = "Chemist",
    max: 5,
    salary = 55,
    admin = 0,
    vote = false,
    hasLicense = false,
    })

    TEAM_PROSTITUE = DarkRP.createJob ("Prostitue")
    color = Color (255, 153, 204, 255),
    model = {"models/player/npc_Moxxi"},
    description = [[yo' suk dik 4 a living, your mom and dad is not proud of you...]]
    weapons = {"weapon_fists", "weapon_medkit",
    command = "Prostitue",
    max: 69,
    salary = 69,
    admin = 0,
    vote = false,
    hasLicense = false
    })






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

    Pab14567 Well-Known Member

    Well first off, I believe you might've copied paste a job from someone else, AND
    Posting the lua error...
     
  3. TypicalRookie

    TypicalRookie Active Member

    Code (Text):
    TEAM_PROSTITUE = DarkRP.createJob ("Prostitue"),
    color = Color (255, 153, 204, 255),
    model = {"models/player/npc_Moxxi"},
    description = [[yo' suk dik 4 a living, your mom and dad is not proud of you...]],
    weapons = {"weapon_fists", "weapon_medkit"},
    command = "Prostitue",
    max: 69,
    salary = 69,
    admin = 0,
    vote = false,
    hasLicense = false
    })
    You were missing commas on the TEAM_PROSTITUTE line and the description line. And a } on the weapons line.
     

Share This Page