Advertisement
ProToTN

MTA Showcursor Script

Jul 14th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. Client side:
  2.  
  3. Possibility 1:
  4.  
  5. function addBind()
  6.     bindKey ("X", "down", showTheCursor)
  7.     function showTheCursor()
  8.     if (not isCursorShowing()) then
  9.         showCursor(true)
  10.     elseif (isCursorShowing()) then
  11.         showCursor(false)
  12.     end
  13. end
  14.  
  15.  
  16. addEventHandler ( "onResourceStart", getRootElement(), addBind )
  17.  
  18. Possibility 2:
  19.  
  20. function showTheCursor()
  21.        showCursor(not isCursorShowing())
  22. end
  23.  
  24.  
  25. bindKey ( "X", "down", showTheCursor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement