Social club Identifiers?

Hey, I’ve got GTA on social club and I can’t get it on steam. I can get my identifier using GetPlayerIdentifiers in LUA. But when I go to add it the server.cfg I don’t know what to prefix it with.

Any help is appreciated.

steam: identifiers can be obtained by having Steam open, you don’t have to own the game through Steam for you to have those identifiers.

I added the steam identifier before it and it still does not work.

Did you open Steam before FiveM?

Yes, it was open.

It shows as me playing FiveM

Then perhaps sv_lan was set, as, iirc, certain identifiers can’t be obtained with this convar set.

As far as I can see that’s not in my server.cfg

add_principal identifier.steam:0000024EE53B5240 group.admin # Daave

Thats the line i added, as far as i can see it is correct.

That’s the wrong identifier, you’re looking for your hexadecimal. This starts with 110000, for example, a proper usage would look like:

add_principal identifier.steam:110000[rest...] group.admin # Daave

Im using a serverside lua file

RegisterCommand('id', function(source, args)
    print(GetPlayerIdentifiers(source))
end, false)

Is this correct?

GetPlayerIdentifiers() returns a table?

yes it does

Ok, so that obviously won’t work unless you unpack the table or specify which index of the table to print.

Ohhhh, god im dumb. This is why i don’t do lua lmao. thanks

RegisterCommand('id', function(source, args, raw)
    for i=0, GetNumPlayerIdentifiers(source) do
        print(GetPlayerIdentifiers(source)[i])
    end
end, false)

or something.

Perfect, thanks.

Is there any way to add prefix steam: on identifier generation?

How do you mean?

Nvm i just found out how