CreateMpGamerTagWithCrewColor — FiveM Natives
0x6DD05E9D83EFA4C9 · HUD · all
Creates a gamer tag for the specified local player ID, automatically attached to the player's current ped. The created gamer tag will have the same ID as the player. You can use IS_MP_GAMER_TAG_ACTIVE to check if a gamer tag already exists for a player. After the gamer tag is created, all components will be set as invisible. Use SET_MP_GAMER_TAG_VISIBILITY to change the visibility of individual components or \_SET_MP_GAMER_TAG_VISIBILITY_ALL to set all of them at once. To create a gamer tag for a ped that is not a player, see CREATE_FAKE_MP_GAMER_TAG.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The local player ID to assign the gamer tag to. |
| username | char* | The name displayed on the gamer tag. |
| crewIsPrivate | BOOL | If the crew is private. Public crews have a pointed end cap, private crews do not. |
| crewIsRockstar | BOOL | If the crew is a Rockstar crew. Rockstar crews include a Rockstar logo before the name. |
| crewName | char* | The name of the crew. |
| crewRank | int | The rank from 1-5 that the player is within the crew. Use 0 if the player is the founder of the crew. Only relevant for private crews. |
| crewR | int | Red component of the crew colour. |
| crewG | int | Green component of the crew colour. |
| crewB | int | Blue component of the crew colour. |