Disabling drawing of armor in firstperson?

Im trying to make armor entities for my gamemode but I want to disable the drawing of it in firstperson but draw it in thirdperson as it gets in the way if I dont do that.

This current code disables the drawing of all entites with the same class in firstperson. Is it possible to make it only stop drawing itself for its parent?



function ENT:Draw()
if !self:GetParent():ShouldDrawLocalPlayer() then return end
self:DrawModel()
end


Yeah, it’s possible.



function ENT:Draw()
     if (LocalPlayer() == self:GetParent() && self:GetParent():ShouldDrawLocalPlayer()) then return end

     self:DrawModel()
end


Basically all you have to do is check if the local player is equal to the parent. I’d also recommend checking if the entities parent is valid.

Thanks alot!

Now me and my friends are gonna go climb the chinese wall.