wizzy06
30
AddEventHandler('playerConnecting', function(name, setKickReason)
local identifier
local Source = source
for k,v in ipairs(GetPlayerIdentifiers(source))do
if string.sub(v, 1, string.len("steam:")) == "steam:" then
identifier = v
break
end
end
MySQL.ready(function()
local result = MySQL.Sync.fetchAll("SELECT * FROM `users` WHERE `identifier`=@steam", {['steam'] = identifier})
if result then
TriggerClientEvent("mysqlTest:test", Source, result)
end
end)
end)
Worked !