FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: HUDAPI set: clientGame: gta5editImprove

CREATE_MP_GAMER_TAG_WITH_CREW_COLOR

0x6DD05E9D83EFA4C9
0xC969F2D0
// CreateMpGamerTagWithCrewColor
void CREATE_MP_GAMER_TAG_WITH_CREW_COLOR(Player player, char* username, BOOL crewIsPrivate, BOOL crewIsRockstar, char* crewName, int crewRank, int crewR, int crewG, int crewB);
Parameters:
  • player:

    The local player ID to assign the gamer tag to.

  • username:

    The name displayed on the gamer tag.

  • crewIsPrivate:

    If the crew is private. Public crews have a pointed end cap, private crews do not.

  • crewIsRockstar:

    If the crew is a Rockstar crew. Rockstar crews include a Rockstar logo before the name.

  • crewName:

    The name of the crew.

  • crewRank:

    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:

    Red component of the crew colour.

  • crewG:

    Green component of the crew colour.

  • crewB:

    Blue component of the crew colour.

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.

Old name: _CREATE_MP_GAMER_TAG_COLOR

Old name: _SET_MP_GAMER_TAG_COLOR

Old name: _CREATE_MP_GAMER_TAG_FOR_NET_PLAYER

Examples:

  • Lua
local playerId = PlayerId() -- you can use any local player ID here

-- clear any already existing gamer tag associated with this player
if IsMpGamerTagActive(playerId) then
	RemoveMpGamerTag(playerId)

	-- wait until the gamer tag actually becomes free
	repeat Wait(0) until IsMpGamerTagFree(playerId)
end

-- create the gamer tag
CreateMpGamerTagWithCrewColor(playerId, "jaymoo", false, true, "RSG", 0, 200, 0, 200)

-- set the name, crew and typing indicator components as visible
SetMpGamerTagVisibility(playerId, 0, true)
SetMpGamerTagVisibility(playerId, 1, true)
SetMpGamerTagVisibility(playerId, 16, true)
Privacy
•
Cookie Policy
•
Cookie Settings
BUSYSPINNER_IS_ON()
BUSYSPINNER_OFF()
CHANGE_FAKE_MP_CASH(int cash, int bank)
CLEAR_ADDITIONAL_TEXT(int p0, BOOL p1)
_CLEAR_ALL_BLIP_ROUTES()
CLEAR_ALL_HELP_MESSAGES()
CLEAR_BRIEF()
CLEAR_DYNAMIC_PAUSE_MENU_ERROR_MESSAGE()
CLEAR_FLOATING_HELP(int hudIndex, BOOL p1)
CLEAR_GPS_CUSTOM_ROUTE()
CLEAR_GPS_FLAGS()
CLEAR_GPS_MULTI_ROUTE()
CLEAR_GPS_PLAYER_WAYPOINT()
CLEAR_GPS_RACE_TRACK()
CLEAR_HELP(BOOL toggle)
CLEAR_PED_IN_PAUSE_MENU()
CLEAR_PRINTS()
_CLEAR_RACE_GALLERY_BLIPS()
CLEAR_REMINDER_MESSAGE()
CLEAR_SMALL_PRINTS()
CLEAR_THIS_PRINT(char* p0)
_CLOSE_MULTIPLAYER_CHAT()
CLOSE_SOCIAL_CLUB_MENU()
CREATE_FAKE_MP_GAMER_TAG(Ped ped, char* username, BOOL crewIsPrivate, BOOL crewIsRockstar, char* crewName, int crewRank)
CREATE_MP_GAMER_TAG_WITH_CREW_COLOR(Player player, char* username, BOOL crewIsPrivate, BOOL crewIsRockstar, char* crewName, int crewRank, int crewR, int crewG, int crewB)
DELETE_WAYPOINTS_FROM_THIS_PLAYER()
DISABLE_FRONTEND_THIS_FRAME()
_DISABLE_MULTIPLAYER_CHAT(BOOL disable)
DISPLAY_AMMO_THIS_FRAME(BOOL display)
DISPLAY_AREA_NAME(BOOL toggle)
DISPLAY_CASH(BOOL display)
DISPLAY_HELP_TEXT_THIS_FRAME(char* pTextLabel, BOOL bCurvedWindow)
DISPLAY_HUD(BOOL toggle)
_DISPLAY_HUD_WHEN_DEAD_THIS_FRAME()
DISPLAY_HUD_WHEN_PAUSED_THIS_FRAME()