PlayerClient

setDispatchCopsForPlayer

SET_DISPATCH_COPS_FOR_PLAYER0xDB172424876553F4

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

SignatureJavaScript
setDispatchCopsForPlayer(player: Player, toggle: boolean): void
SignatureLua
setDispatchCopsForPlayer(player: Player, toggle: boolean)

Usage

JavaScript
setDispatchCopsForPlayer(player, toggle);
Lua
setDispatchCopsForPlayer(player, toggle)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void SET_DISPATCH_COPS_FOR_PLAYER(Player player, BOOL toggle)
Hash
0xDB172424876553F4

Open in the interactive natives reference