ShowPlayerMarkers

ShowPlayerMarkers

Description:
Function ShowPlayerMarkers toggles player markers (blips on the radar). Must be used when the server starts (OnGameModeInit). For other times, see SetPlayerMarkerForPlayer.
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.


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


Marker Modes:
ID Mode
0 PLAYER_MARKERS_MODE_OFF
1 PLAYER_MARKERS_MODE_GLOBAL
2 PLAYER_MARKERS_MODE_STREAMED


Return Values:
This function does not return any specific values.


Examples:
// Red, using hexadecimal notation:
SetPlayerColor(playerid, 0xFF0000FF);
 
//Red, using decimal notation:
SetPlayerColor(playerid, 4278190335);


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