Hey All, Ive got a weird error from a function which I made that says it dont know what ‘Armor’ Is, Yet the gmodwiki tells me its correct, Any help much Appreciated.
local plys = ents.FindByClass(“player”)
if (plys:Armor() > 0) then
local hat = ents.Create(“ba_chest”);
elseif (plys:Armor( 0 )) then
hook.Add(“Think”, “Bodyarmour”, Bodyarmour)
Basically what I am trying to achieve, is it will spawn a entity on the player when the player has armour/suit armour.
Any help appreciated.