1. 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.

Bodygroups in jobs.lua & restricing pickups for jobs.

Discussion in 'DarkRP Modding Questions & Help' started by Lord Of The Sluggies, Jul 8, 2018.

  1. Hey, I've been trying to get bodygroups to work for a bit on one of the models, and I haven't been able to make it work.

    The job code is


    TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
    color = Color(35, 44, 15, 255),
    model = {"models/bloocobalt/splinter cell/chemsuit_cod.mdl"},
    description = [[Make some sweet illegal drugs and sell them to other players; or use them yourself.]],
    weapons = {},
    command = "druggy",
    max = 3,
    salary = 25,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Criminals",
    level = 8,
    customCheck = function(ply) return ply:GetLevel() >= 8 end,
    CustomCheckFailMsg = "You must be level 8 or higher!",
    PlayerSpawn =function(ply) ply:SetBodygroup(2, 2)end

    I'm not sure what the issue is, if I could get some help I'd be pretty appreciative!

    Also, on a side note. Is there a way to make it so that a job can only use one weapon, or can't pick up any more?
  2. Arttu motskari

    Arttu motskari New Member

    PlayerSpawn = function(ply)

    Try set it like this, you dont have space after =

Share This Page