togglePlayerRadar

From IV:MP Wiki

Jump to: navigation, search

Server · (Functions · Events)

Toggles the player's radar.

Contents

Squirrel Syntax

bool togglePlayerRadar ( int playerid, bool toggle )

Parameters

(int playerid, bool toggle)
int playeridthe player
bool togglethe boolean toggle - true or false

Returns

Returns true if the radar was toggled, false otherwise.

Example

This example will disable the player's radar upon connection.

function onPlayerConnect(playerid)
{
    togglePlayerRadar(playerid, false);
    return 1;
}
addEvent("playerConnect", onPlayerConnect);
Personal tools
Namespaces
Variants
Actions
Navigation
Server
Client
Scripting
Toolbox