Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. addEventHandler( "onClientGUIClick", GUI_RegData[ button ][ 1 ],
  2.     function( )
  3.         local username = guiGetText( GUI_RegData[ memo ][ 1 ] )
  4.         local password = guiGetText( GUI_RegData[ memo ][ 2 ] )
  5.        
  6.         if( ( string.len( username ) ~= nil ) and ( string.len( password ) ~= nil ) ) then
  7.             showCursor( false )
  8.             guiSetInputEnabled( false )
  9.             guiSetVisible( GUI_RegData[ window ], false )
  10.            
  11.             triggerServerEvent( "continueRegistration", getRootElement( ), username, password )
  12.         else
  13.             outputChatBox( "Error: You didn't insert a username and/or password!" )
  14.         end
  15.     end
  16. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement