Disable steam auth

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?

Pealse Help me!

You will have to ask in the ESX topic or on there github as this would involve having to do a lot of work.

Simply run steam in the background otherwise.

1 Like

If a player doesn’t have steam account only social club?!

then make one? its free…

I want to use the FiveM server without relying on steam

1 Like

then contact ESX or figure out how to convert ESX to not use steam identifiers.

Can you give me a link?

1 Like

Its going to be the link you used to download ESX.

Who should I contact, for this?

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.

I found this in esx scripts:

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

But I don’t know what I need to modify!

not sure if it’ll crash in other places, but you could try this:

if string.sub(v, 1, string.len("license:")) == "license:" then

instead of this line:

if string.sub(v, 1, string.len("steam:")) == "steam:" then
1 Like

Thx, This will identify the player by license, no?
Anyway it is good!

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

could you please tell me where this file is located

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.

Hope this helps you and others.
Hux

5 Likes

Thank you so much, This fixed my issue.

All of these did not fix my issue. no matter what i do no one can connect to my server

i have tried everything listed here please help

Thank you greatly for this :pray: