Scripting/Squirrel/Functions/Player.ShowMarkers

From Vice City Multiplayer
Revision as of 14:07, 12 December 2018 by Sseebbyy (talk | contribs) (Created page with "== Syntax == <pre>player.ShowMarkers = bool</pre> *'''player''': player instance *'''bool''': true (1) / false (0) == Description == This function will show or hide all mar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Syntax

player.ShowMarkers = bool
  • player: player instance
  • bool: true (1) / false (0)

Description

This function will show or hide all markers of all players, for a player you set.

Example

function onPlayerCommand( player, cmd, wantedLevel )
{
    if ( cmd == "hidemarkers" )
    {
        player.ShowMarkers = false;
        MessagePlayer( "You hidden all players' markers from map and radar", player );
    }
}

Related Functions

Player Game Functions

These functions exist for compatibility with the R2 Squirrel server.