Advertisement
Guest User

SZAR

a guest
Feb 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. --HideAllHUDElement
  2. setPlayerHudComponentVisible("all", false)
  3. setPlayerHudComponentVisible("crosshair", true)
  4. --InventoryDisplay
  5. keyState = 0;
  6. bindKey("i","down",function()
  7.     if keyState == 0 then
  8.         --létrehoz
  9.         addEventHandler("onClientRender",root,showHUD)
  10.         keyState = 1;
  11.     else
  12.         --Elrejt
  13.         hideHUD()
  14.         keyState = 0;
  15.     end
  16.     outputChatBox(keyState);
  17. end)
  18.  
  19. function showHUD()
  20.     lockCamera()
  21.  
  22. end
  23. function hideHUD()
  24.     outputChatBox("OK");
  25.     setCameraTarget(localPlayer)
  26.    
  27.    
  28.    
  29. end
  30.  
  31. function lockCamera()
  32.     local x, y, z, lx, ly, lz = getCameraMatrix()
  33.     setCameraMatrix (x, y, z, lx, ly, lz)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement