• Setting Speed / HP for Custom Job
    1 replies, posted
Hi, I have made a custom job with Speed & HP. However, I don't get the speed or hp until I either Die when I'm that job or I kill myself. How do I make it so I get it when I chose the job? [CODE]TEAM_PYS = DarkRP.createJob("PYS", { -- Name color = Color(0, 0, 200, 255), -- Team color model = "models/player/edward_kenway.mdl", -- Player model description = [[Fun Class!]], -- Job description weapons = {"m9k_damascus"}, -- Additional weapons command = "pys", -- Command to become the job max = 1, -- Maximum amount of said job salary = 45, -- Salary admin = 1, -- Requires Admin? 1 for yes, 0 for no. vote = false, -- Do they need to vote? true for yes, false for no. hasLicense = false, -- Has a license customCheck = function(ply) return ply:GetNWString("usergroup") == "Owner" end, -- The extra check function. Enter nil or nothing to not have a restriction PlayerSpawn = function(ply) ply:SetHealth(255) ply:SetArmor(255) ply:SetRunSpeed(ply:GetRunSpeed() * 3) ply:SetWalkSpeed(ply:GetWalkSpeed() * 2) ply:SetCrouchedWalkSpeed(ply:GetCrouchedWalkSpeed() * 2) end }) [/CODE]
PlayerLoadout = function( ply ) instead of PlayerSpawn = function( ply )
Sorry, you need to Log In to post a reply to this thread.