[C#] MpGamerTag natives don't return a handle

In C#, using the latest version of the CitizenFX.Core.Client Nuget package (1.0.3240), the following natives contained in the API static class return void:

CreateMpGamerTagColor
CreateMpGamerTagForNetPlayer
CreateMpGamerTagWithCrewColor

While in the documentation (https://docs.fivem.net/docs/game-references/gamer-tags/), the C# example appears to assign the return value of CreateMpGamerTagForNetPlayer to an int variable.

CreateMpGamerTag correctly returns a handle to the gamer tag.

I apologize for posting in the wrong section, but there’s no issues page on the FiveM GitHub repo and I don’t know where to post this here on the forums.

That’s correct, since the handle for non-fake gamer tags is equivalent to the player index.

See also:

1 Like

Thanks, that works