GTA V version? Latest Up to date? YES Legit or Pirate copy? Legit Steam/CD/Social Club? Social Club Windows version? 10
I have the gta 5 installed from social club, and I want to develop a fivem server. I have a problem with the steam auth, on my server. I want to use an IP, or ID, or username auth. Before installing ESX script, all things works fine. But now my server requires steam to be opened, and in my database the steam id appears as a identifier. (In the server.cfg I commented this 2
options. #sv_authMaxVariance 1 #sv_authMinTrust 5
Can I disable the Steam auth in ESX config, or modify the script code to not require Steam ID?
You already made a topic about this in another section. You should have posted on the official thread(s) for ESX / ES. Also if you’re not willing to help yourself first no one else will.
these options in the server.cfg are pretty much no longer used, since the introduction of the license identifier.
They no longer block players that don’t run steam.
If you want to allow players to join without steam, you’ll have to edit the resource that blocks it yourself (probably esx in your case) or contact the developer of that resource for support.
local Source = source
Citizen.CreateThread(function()
local id
for k,v in ipairs(GetPlayerIdentifiers(Source))do
if string.sub(v, 1, string.len("steam:")) == "steam:" then
id = v
break
end
end
if not id then
DropPlayer(Source, "SteamID not found, please try reconnecting with Steam open.")
else
registerUser(id, Source)
justJoined[Source] = true
if(settings.defaultSettings.pvpEnabled)then
TriggerClientEvent("es:enablePvp", Source)
end
end
hmm i am running a fresh server with no mods to try it out , it doesnt work for me as well
in my case
i tried :
Method 1 #sv_authMaxVariance 0 #sv_authMinTrust 0
set steam_webApiKey “none”
Method 2
sv_authMaxVariance 0
sv_authMinTrust 0
set steam_webApiKey “none”
method 3
sv_authMaxVariance 0
sv_authMinTrust 0
#set steam_webApiKey “none”
Method 4
#sv_authMaxVariance 0 #sv_authMinTrust 0
#set steam_webApiKey “none”
its still doesnt work , it tell the cilent steam is needed
I managed to bypass SteamID by editing the following.
resources\essentialmode\server\main.lua - line 95
RegisterServerEvent('playerConnecting')
AddEventHandler('playerConnecting', function(name, setKickReason)
local id
for k,v in ipairs(GetPlayerIdentifiers(source))do
if string.sub(v, 1, string.len(settings.defaultSettings.identifierUsed .. ":")) == (settings.defaultSettings.identifierUsed .. ":") then
id = v
break
end
end
if not id then
setKickReason("$$$Unable to find SteamID, please relaunch FiveM with steam open or restart FiveM & Steam if steam is already open")
CancelEvent()
end
end)
and changed it to
RegisterServerEvent('playerConnecting')
AddEventHandler('playerConnecting', function(name, setKickReason)
local id
for k,v in ipairs(GetPlayerIdentifiers(source))do
if string.sub(v, 1, string.len(settings.defaultSettings.identifierUsed .. ":")) == (settings.defaultSettings.identifierUsed .. ":") then
id = v
break
end
end
if not id then
break
end
end)
I know this isn’t the proper way of authenticating users, but for my development server I couldn’t connect even with Steam open and nobody seemed to know how to resolve it.