Przejdź do głównej zawartości

ShowPlayerMarkers

Description

Toggles player markers (blips on the radar). Must be used when the server starts (OnGameModeInit). For other times, see SetPlayerMarkerForPlayer.

NameDescription
PLAYER_MARKERS_MODE:modeThe 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

IDMODE
0PLAYER_MARKERS_MODE_OFF
1PLAYER_MARKERS_MODE_GLOBAL
2PLAYER_MARKERS_MODE_STREAMED

Notes

wskazówka

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.