Advertisement
Guest User

hie viewmodels in gmod

a guest
Oct 25th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local function hide()
  2. for k , v in pairs ( player.GetAll() ) do
  3. if GetConVarNumber("hideviewmodels") == 1 then
  4. v:DrawViewModel(false)
  5. else if
  6. GetConVarNumber("hideviewmodels") == 0 then
  7. v:DrawViewModel(true)
  8. end
  9. end
  10. end
  11. end
  12. hook.Add("HUDPaint", "hide", hide )
  13.  
  14. CreateClientConVar("hideviewmodels", 1, true, false )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement