Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loginHandler(username, password)
- local accountCheck = exports.sql:query_assoc_single( "SELECT * FROM accounts WHERE username='" .. username .. "', password='" .. password .. "'" )
- if not accountCheck then
- triggerClientEvent (source, "wrongLogin", root)
- else
- spawn(source)
- end
- end
Add Comment
Please, Sign In to add comment