warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
ShowPlayerMarkers
Description
Toggles player markers (blips on the radar). Must be used when the server starts (OnGameModeInit). For other times, see SetPlayerMarkerForPlayer.
Name | Description |
---|---|
PLAYER_MARKERS_MODE:mode | The mode to use for markers. They can be streamed, meaning they are only visible to nearby players. |
Returns
This function does not return any specific values.
Examples
public OnGameModeInit()
{
// Player markers only visible to nearby players
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
}
Marker Modes
ID | MODE |
---|---|
0 | PLAYER_MARKERS_MODE_OFF |
1 | PLAYER_MARKERS_MODE_GLOBAL |
2 | PLAYER_MARKERS_MODE_STREAMED |
Notes
tip
It is also possible to set a player's color to a color that has full transparency (no alpha value). This makes it possible to show markers on a per-player basis.
Related Functions
- SetPlayerMarkerForPlayer: Set a player's marker.
- LimitPlayerMarkerRadius: Limit the player marker radius.
- ShowNameTags: Set nametags on or off.
- SetPlayerColor: Set a player's color.