1. Post #1
    Decompiled's Avatar
    June 2009
    132 Posts
    I need help making an armor entity that you can buy depending on the class you are, like Mobboss would be able to buy Mobster's Suit and it would give him 125 armor.

    How do I do this?
    Reply With Quote Edit / Delete Reply United States Show Events Useful Useful x 1 (list)

  2. Post #2
    Gold Member
    Entoros's Avatar
    October 2008
    2,318 Posts
    Just make a basic entity, then in the init.lua do:

    function ENT:Touch(ply)
    	if ply:IsPlayer() == true then
    		self.Entity:Remove()
    		ply:SetArmor(125)
    	end
    end

  3. Post #3
    Decompiled's Avatar
    June 2009
    132 Posts
    o wow thanks a bunch, i really appreciate it.