PleaseHelp With Steam Identifier

Hello, so can anyone help me?
I wanna change it from this:
image
To this:
image

Steam is not recommended nor supported by FiveM or ESX, and I’m not sure why you need to have the steam prefix. However, if you insist you need to replace the existing function and variables.

This assumes you are using ESX Legacy.

server/functions.lua

ESX.GetIdentifier = function(playerId)
	for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
		if string.match(v, 'steam:') then
			--local identifier = string.gsub(v, 'steam:', '') This removes 'steam:'
			return identifier
		end
	end
end

server/classes/player.lua

self.license = identifier

In what line i should put this?

2 Likes

@Linden It still not works

1 Like

What to do?

image

So if you don’t have them you’re not using the only supported version of ESX.

I’m use the old.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.