I have a swep that changes its third person holdtype while E is pressed, but it only works clientside, so can only be seen by the person pressing it. What can I do to make it serverside?
function SWEP:Think()
self:RunWorldModelThink()
self:CustomOnThink()
if self.Owner:KeyDown( IN_USE ) then
self:SetWeaponHoldType("passive")
end
if self.Owner:KeyReleased( IN_USE ) then
self:SetWeaponHoldType("ar2")
end
end
SetHoldType
Sorry, you need to Log In to post a reply to this thread.