ShowPlayerMarkers

From SA-MP Wiki

Jump to: navigation, search

ShowPlayerMarkers


A function that can be used in OnGameModeInit to enable or disable the players markers, which would normally be shown on the radar. If you want to change the marker settings at some other point in the gamemode, have a look at SetPlayerMarkerForPlayer which does exactly that.


Parameters:
(mode)
modeThe mode you want to use


This function does not return a specific value.


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

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools