• Gmod Darkrp Pill job bugg.
    2 replies, posted
I am trying to make a job use you a pill. Everything works except for when they die they re spawn as the pill and sometimes gets stuck Intel they get re spawned again. I will put my code below if anyone could help that would be awesome! TEAM_VELOCIRAPTOR = DarkRP.createJob("Velociraptor", {     color = Color(0, 125, 0, 255),     model = {"models/player/custom/jpvelociraptor/jpraptor_pm.mdl"},     description = [[N/A]],     weapons = {},     command = "raptor",     max = 2,     salary = 45,     admin = 0,     vote = false,     hasLicense = false,     candemote = false,     category = "Carnivores",     PlayerSpawn = function(ply)  pk_pills.apply(ply,"raptor",1) ply:SetNoDraw(true) end, -- adding  1 makes the pill last until death  PlayerDeath = function(ply) pk_pills.restore(ply,true) end, -- just making sure the pill is removed.     customCheck = function(ply) return CLIENT or         table.HasValue({"superadmin", "admind", "moderatord", "trialmodd", "donator", "donator+"}, ply:GetNWString("usergroup"))     end,     CustomCheckFailMsg = "This job is donator only!", })
"when they die they re spawn as the pill and sometimes gets stuck Intel they get re spawned again." English please.
TEAM_VELOCIRAPTOR = DarkRP.createJob("Velociraptor", {     color = Color(0, 125, 0, 255),     model = {"models/player/custom/jpvelociraptor/jpraptor_pm.mdl"},     description = [[N/A]],     weapons = {},     command = "raptor",     max = 2,     salary = 45,     admin = 0,     vote = false,     hasLicense = false,     candemote = false,     category = "Carnivores",     customCheck = function(ply) return CLIENT or         table.HasValue({"superadmin", "admind", "moderatord", "trialmodd", "donator", "donator+"}, ply:GetNWString("usergroup"))     end,     CustomCheckFailMsg = "This job is donator only!", }) Fixed. But on a serious note could you post the code for your custom functions? Specifically pk_pills and tell us what apply/restore is supposed to do?
Sorry, you need to Log In to post a reply to this thread.