The identifier is something to identify them outside fivem. Like their social club id or steam or whatever. You want to translate this to the id fivem is using. So you have to either loop through all connected player and check their id.
Or save an identifier and their id when a player joins and later use this information.

If you are using ESX for example you can di this. ESX.GetPlayerByIdentifier I think is the correct one. The retuned player will have a field called source which is the ID you are searching for. Other tools may have other methods of retrieving.

1 Like