Guest User

Untitled

a guest
Jun 14th, 2017
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()),
  2.     function()
  3.     local X = 0.375
  4.     local Y = 0.375
  5.     local Width = 0.25
  6.     local Height = 0.25
  7.     wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", true)
  8.  
  9.     X = 0.0825
  10.     Y = 0.2
  11.     Width = 0.25
  12.     Height = 0.25
  13.     guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin)
  14.     Y = 0.5
  15.     guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin)
  16.  
  17.  
  18.     X = 0.415
  19.     Y = 0.2
  20.     Width = 0.5
  21.     Height = 0.15
  22.     edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin)
  23.     Y = 0.5
  24.     edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin)
  25.     guiEditSetMaxLength(edtUser, 50)
  26.     guiEditSetMaxLength(edtPass, 50)
  27.  
  28.     X = 0.415
  29.     Y = 0.7
  30.     Width = 0.25
  31.     Height = 0.2
  32.     btnLogin = guiCreateButton(X, Y, Width, Height, "Log In", true, wdwLogin)
  33.  
  34.     guiSetVisible(wdwLogin, false)
  35.  
  36.     outputChatBox("Script running till here", 255)
  37.  
  38.             if (wdwLogin ~= nil) then
  39.             guiSetVisible(wdwLogin, true)
  40.         else
  41.             outputChatBox("An unexpected error has occurred and the log in GUI has not been created.")
  42.             end
  43.  
  44.             showCursor(true)
  45.             guiSetInputEnabled(true)
  46.     end
RAW Paste Data