Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --HideAllHUDElement
- setPlayerHudComponentVisible("all", false)
- setPlayerHudComponentVisible("crosshair", true)
- --InventoryDisplay
- keyState = 0;
- bindKey("i","down",function()
- if keyState == 0 then
- --létrehoz
- addEventHandler("onClientRender",root,showHUD)
- keyState = 1;
- else
- --Elrejt
- hideHUD()
- keyState = 0;
- end
- outputChatBox(keyState);
- end)
- function showHUD()
- lockCamera()
- end
- function hideHUD()
- outputChatBox("OK");
- setCameraTarget(localPlayer)
- end
- function lockCamera()
- local x, y, z, lx, ly, lz = getCameraMatrix()
- setCameraMatrix (x, y, z, lx, ly, lz)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement