Scripting/Squirrel/Functions/Player.ShowMarkers

From Vice City Multiplayer
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

This function will hide markers for the player who writes the command.

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.