PlayerClient

setPoliceRadarBlips

SET_POLICE_RADAR_BLIPS0x43286D561B72B8BF

The GTA V native SET_POLICE_RADAR_BLIPS of the PLAYER namespace, as LS:MP client scripts call it: the global function setPoliceRadarBlips, in JavaScript and in Lua.

SignatureJavaScript
setPoliceRadarBlips(toggle: boolean): void
SignatureLua
setPoliceRadarBlips(toggle: boolean)

Usage

JavaScript
setPoliceRadarBlips(toggle);
Lua
setPoliceRadarBlips(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

If toggle is set to false:
The police won't be shown on the (mini)map

If toggle is set to true:
The police will be shown on the (mini)map

Reference

Namespace
Player PLAYER
In the game
void SET_POLICE_RADAR_BLIPS(BOOL toggle)
Hash
0x43286D561B72B8BF

Open in the interactive natives reference