ShowPlayerMarkers

From SA-MP Wiki

Jump to: navigation, search


Description:

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


Parameters:
(mode)
modeThe mode to use for markers. They can be streamed, meaning they are only visible to nearby players. See table below.


Return Values:

This function does not return any specific values.


Marker Modes

ID Mode
0 PLAYER_MARKERS_MODE_OFF
1 PLAYER_MARKERS_MODE_GLOBAL
2 PLAYER_MARKERS_MODE_STREAMED
public OnGameModeInit()
{
    // Player markers only visible to nearby players
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
}
Tip

Image:Light_bulb_icon.png

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

The following functions may be useful, as they are related to this function in one way or another.

Personal tools