Advertisement
Guest User

Untitled

a guest
May 15th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. local accounts = {}
  2. local sx, sy = guiGetScreenSize()
  3.  
  4. function awake()
  5.     fadeCamera(true, 5)
  6.     setCameraMatrix(2500, -2500, 200, 0, 0, 0)
  7.     setFarClipDistance(1000)
  8.     setPlayerHudComponentVisible ("all", false)
  9.     setPlayerHudComponentVisible ("crosshair", true)
  10.     showCursor(true)
  11. end
  12. awake()
  13.  
  14. function callLogin()
  15.     accounts.username = guiCreateEdit(sx/2-150, sy/2-60, 300, 30, "", false)
  16.     accounts.password = guiCreateEdit(sx/2-150, sy/2-20, 300, 30, "", false)
  17.     guiEditSetMasked (accounts.password, true)
  18.     accounts.login = guiCreateButton(sx/2-150, sy/2+20, 150, 30, "Bejelentkezés", false)
  19.     accounts.register = guiCreateButton(sx/2, sy/2+20, 150, 30, "Regisztráció", false)
  20. end
  21. callLogin()
  22.  
  23. function login()
  24.     --TODO
  25. end
  26. addEventHandler("onClientGUIClick", accounts.login, login)
  27.  
  28. function register()
  29.     --TODO
  30. end
  31. addEventHandler("onClientGUIClick", accounts.register, register)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement