How does fivem find the rockstar license?

It’s a SHA1 hash. If they’re using the Steam version of GTA, it’s just a hash of steam:(insert hex id here), you can easily test this out.

As for the non-Steam version, I’m not sure.