szymski

Untitled

Apr 15th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. if CLIENT then
  4. delay = 0.5
  5. toggle = true
  6.  
  7. hook.Add("Think", "Toggle_Thirdperson", function()
  8. if (input.IsKeyDown(KEY_T)) and toggle == true then
  9.  
  10. ply:ConCommand("simple_thirdperson_enable_toggle")
  11. toggle = false
  12.  
  13. timer.Simple(delay, function() toggle = true end)
  14. end
  15. end)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment