Gamer tags are the overhead displays shown above player characters. They consist of
multiple components that can be individually toggled. Use CreateMpGamerTagWithCrewColor
and related natives to manage them.
-- Create a gamer tag for a ped
local tag = CreateMpGamerTagWithCrewColor(ped, "PlayerName", false, false, "", 0, 0, 0, 0)
-- Show components
SetMpGamerTagVisibility(tag, 0, true) -- Show name
SetMpGamerTagVisibility(tag, 2, true) -- Show health/armour bar
-- Set tag colour
SetMpGamerTagColour(tag, 0, 116) -- Set name colour
-- Remove when done
RemoveMpGamerTag(tag)| ID | Name | Description |
|---|---|---|
| GAMER_NAME | Player name display | |
| CREW_TAG | Crew tag display | |
| HEALTH_ARMOUR | Health/armour bar | |
| BIG_TEXT | Large text display | |
| AUDIO_ICON | Speaker/audio icon | |
| USING_MENU | Menu indicator | |
| FLAG | Flag icon | |
| WANTED_STARS | Wanted level stars display | |
| TYPING | Typing indicator | |
| BAG_LARGE | Large bag icon |