custom armor values to different tea

how do i add my custom teams (darkrp jobs) to this code
this is the default

function ENT:Use(plyUse)
self:Remove()
plyUse:SetArmor(30)
end

how do i add teams there so when they pick it up they get the armor value that i chose?

When you create a DarkRP job, you will give it a unique variable such as TEAM_CITIZEN.
If you do this:


if (ply:Team() == TEAM_CITIZEN) then

the following code will only run if the player’s team is Citizen.
I presume you are a Lua coder, otherwise I can help you more with this.

i m a beginner in lua coding i gess i m not too good, where do i put the code?

in the armor folder like how?

function ENT:Use(plyUse)
self:Remove()
plyUse:SetArmor(30)
end
somewhere here? and where do i put the ammount of armor in your code?
if (ply:Team() == TEAM_CITIZEN) then ??