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.

PlayerSpawn Functions not working

Discussion in 'DarkRP Modding Questions & Help' started by Aeioyoo, Nov 5, 2017.

  1. Aeioyoo

    Aeioyoo Member

    Hi, I'm trying to set bodygroups and skins at playerspawn for some jobs, but when I go the job, the functions aren't running. Here's an example:
    Code (Text):
    CRIMS_CROOK = DarkRP.createJob("Crook", {
        color = Color(0, 0, 0, 255),
        model = {"models/player/suits/robber_open.mdl"},
        description = [[.]],
        weapons = {},
        command = "crook",
        max = 0,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = false,
        candemote = false,
        category = "Criminals",
        PlayerSpawn = function(ply)
            ply:SetBodygroup(1, 2)
            ply:SetBodygroup(0, 1)
            ply:SetSkin(3)
        end
    })
     

Share This Page