I own a kingdomRP server and I need custom hp for a donator job (Dragon) What is the code for this??
I only want the hp not the speed tho
Put this in the job you want to set the health for. Change ‘250’ to what you want their health to be set to. Most of the time people won’t “spoon feed” you code, it might help to look at the Garry’s Mod Wiki next time.
PlayerSpawn = function(ply) ply:SetHealth(250) ply:SetMaxHealth(250) return CLIENT end
You should prob also add ply:SetMaxHealth(250) if you want the health to be healed up to 250 with medkits and stuff like that.
Totally overlooked that, thanks for noticing! I have changed my code example to fix this.