• Custom Job Help
    2 replies, posted
So I have the following custom job down below but the following arguments on the PlayerSpawn function (SetWalkSpeed, SetRunSpeed & SetJumpPower) are not working for the job after you spawn, they just revert to default. I am using Nordahl's Player Spawn Point Editor script found here: Player Spawn Point Editor Is because of the Nordahl's script or is that the wrong way to spell the arguments? TEAM_SWATJ = DarkRP.createJob("S.W.A.T. Juggernaut (Super Donator)", {     color = Color(204, 204, 204, 255),     model = {"models/player/gasmask.mdl"},     description = [[You're a S.W.A.T. Juggernaut, you're very big but then again that's all the protective armor you wear everyday to your job. Your a beast with a big gun and even bigger huevos. You also come equipped with a Speedster Tranquilizer in a case where you need to subdue a Speedster. This job cannot Raid(unless you have a valid warrant)/Carjack/Mug/Steal, be Corrupt, etc. This job is for Super-Donators and above only! Donate to get access to all Super-Donator Jobs. You spawn with the M134 Minigun and your police equipment.]],     weapons = {"m9k_minigun", "arrest_stick", "stunstick", "unarrest_stick", "door_ram", "itemstore_pickup", "weapon_arc_atmcard"},     command = "voteswatj",     max = 12,     salary = 6500,     admin = 0,     vote = true,     hasLicense = true,     candemote = true,     category = "Government Officials",     ammo = {         ["ar2"] = 10000     },     PlayerSpawn = function(ply)         ply:SetMaxHealth(600)         ply:SetHealth(600)         ply:SetArmor(300)         ply:SetWalkSpeed(100)         ply:SetRunSpeed(150)         ply:SetJumpPower(100)     end,     customCheck = function(ply) return CLIENT or table.HasValue({"superdonator", "juniormod", "moderator", "seniormod", "admin", "senioradmin", "headofstaff", "superadmin", "eventadmin", "developer", "coowner", "owner"}, ply:GetNWString("usergroup")) end, })
No it's not because of any of that, it's because you have the intent to have players pay for jobs on your server. DarkRP doesn't like that so it breaks all your shit so you don't have to.
That makes absolutely no sense, the job is just restricted to a rank, stop being dumb. If you don't like that i'm restricting jobs to donator ranks then don't post anything. Either way I'm already in the process of removing the restrictions to jobs anyway. And plus the same arguments and functions are set on other jobs that don't have a custom check/restriction.
Sorry, you need to Log In to post a reply to this thread.