Darkrp Jobs Spawning With Armor.

On my Darkrp server I have a few jobs that I would like to have spawn with either extra armor or extra HP. All the codes that I have tried haven’t really been working for me unfortunately.
If anyone knows of someway to make jobs spawn with extra armor that would be awesome.

-Thanks

Untested, but playerspawn hook this ?

[lua]if ply:Team() == TEAM_STUPID then ply:SetArmor(125) end[/lua]

or edit the player loadout in the gamemodefunctions file ?

I’m a really big noob with this stuff Xd.
Were exactly would I put this?

[lua]function Idiot(ply)
if ply:Team() == TEAM_STUPID then ply:SetArmor(125) end
end
end
hook.Add(“PlayerSpawn”, “IdiotScript”, Idiot)[/lua]

You have 1 extra end in there-

Ok? ummmm. Funny stuff.

Anyone willing to say were that code goes?

Put it in a serverside file at the very bottom, such as init.lua.
[lua]
hook.Add(“PlayerSpawn”, “DarkRP.CustomArmorSpawn”, function(ply)
if ply:Team() == TEAM_STUPID then ply:SetArmor(125) end
end)
[/lua]

Or you could put this:


if ply:Team() == TEAM_STUPID then ply:SetArmor(125) end

at the bottom of GM:PlayerLoadout (Use Control + F to find it) in gamemode_functions.lua