Guest User

Untitled

a guest
Jun 6th, 2018
694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. function loginHandler(username, password)
  2.     local accountCheck = exports.sql:query_assoc_single( "SELECT * FROM accounts WHERE username='" .. username .. "', password='" .. password .. "'" )
  3.     if not accountCheck then
  4.         triggerClientEvent (source, "wrongLogin", root)
  5.     else
  6.         spawn(source)  
  7.     end
  8. end
Add Comment
Please, Sign In to add comment