Instead of just using Entity:SetHealth(number hp), you will want to also use Entity:SetMaxHealth(number maxhp) in your job's info, or set max health in the config file however you're told to.
Can you change it for me?
AddExtraTeam("Doom Commander", {
color = Color(63, 127, 79, 255),
model = {"models/player/asgclonewars/commander_doom/commander_doom.mdl"},
description = [[Doom CO]],
weapons = {"weapon_752_t21", "weapon_752_dc15a", "weapon_752_dc17dual"},
command = "doomco",
max = 1,
salary = 400,
admin = 0,
PlayerSpawn = function(ply) GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1, GAMEMODE.Config.runspeed * 1) ply:SetHealth("500") ply:SetGravity(1) return CLIENT end,
PlayerDeath = function(ply) GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1, GAMEMODE.Config.runspeed * 1) return CLIENT end,
vote = false,
hasLicense = false,
category = "Doom",
})
is the default job, can you add in the hp thing or instruct me on how to do so?