GET_PLAYER_SOCIALCLUB_ID serverside function

I would like to request a function to get a players Social Club ID (or RockstarID how R* calls it in their web endpoints).
This would be useful for reliable identification and banning of users, in our case to identify users cross-plattform, as its already possible to read it in serverside addons in competing frameworks such as ■■■■■■ and Alt:V and is missing in the FiveM API.

Failed - Insufficient permissions

The license ID hash is 100% equivalent to this, it doesn’t exist here in a raw way as you’re not signed in to Social Club directly while playing to prevent bans (other mods don’t seem to care about that at all and just depend on SC sign-in, which is why it’s “missing” from FiveM: there’s no dependency on ROS at all and if ROS were to vanish entirely Steam users could still play).

Again, the license identifier is exactly what you are looking for - except for Steam users which are identified using Steam and don’t have a ROS ID at all. Adding this for Steam users would make no sense and be entirely counterproductive as it’d require people to sign in to ROS just because other modification projects don’t bother doing things cleanly and using silent Steam/Discord authentication for your specific use case.

1 Like

OK, thank you for the response.

Would it be reasonable (and even possible) for us to recreate the license hash on other plattforms to then use it cross-plattform instead of the socialclub ID?
Unfortunately we couldnt really figure what exactly happens in the source code.

Not directly, as for people owning Steam copies it will be their Steam ID and therefore unless other mods offer such identification it kind-of wouldn’t be viable to do so.

1 Like