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.

DarkRP job problems

Discussion in 'DarkRP Modding Questions & Help' started by †☠†↓SixFeetUnder↓†☠†, Dec 1, 2019.

  1. I made some custom jobs and categorys but i wont work there are no lua errors
    when i go to the F4 menu i can see the categorys but no jobs and i checked if the jobs are playable and they are playable with the /jobcommand

    can some one help me with this problem ?
     
  2. se7ensins

    se7ensins Member

    Here is an example:

    Worker30 = DarkRP.createJob("Kidnapper", {
    color = Color(255, 0, 0, 255),
    model = {
    "models/csgopirate1pm.mdl",
    "models/csgopirate2pm.mdl",
    "models/csgopirate3pm.mdl",
    "models/csgopirate4pm.mdl"
    },
    description = [[
    Allowed/Not Allowed
    1) Own a gun = Allowed
    2) Base = Allowed
    3) Raid = Allowed
    4) Mug = Not Allowed
    5) Kinnap = Allowed
    6) Base with government = Not Allowed
    7) Base with friends = Allowed
    8) Steal = Not Allowed
    9) Kill = Not Allowed
    10) Bank Raid = Not Allowed
    11) PD Raid = Not Allowed
    12) Car Jack = Not Allowed
    13) Hitman = Not Allowed
    These All Must be Adverted ]],
    weapons = {"weapon_fists", "itemstore_pickup", "lockpick", "weapon_r_baton", "weapon_r_restrains", "itemstore_pickup", "weapon_arc_atmcard"},
    command = "Worker30",
    max = 2,
    salary = 68,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Criminals",
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })



    Do you have a category set? thats probably why or the ID of the job are the same. Let me know
     

Share This Page