PedClient

setCreateRandomCopsNotOnScenarios

SET_CREATE_RANDOM_COPS_NOT_ON_SCENARIOS0x8A4986851C4EF6E7

The GTA V native SET_CREATE_RANDOM_COPS_NOT_ON_SCENARIOS of the PED namespace, as LS:MP client scripts call it: the global function setCreateRandomCopsNotOnScenarios, in JavaScript and in Lua.

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

Usage

JavaScript
setCreateRandomCopsNotOnScenarios(toggle);
Lua
setCreateRandomCopsNotOnScenarios(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_CREATE_RANDOM_COPS_NOT_ON_SCENARIOS(BOOL toggle)
Hash
0x8A4986851C4EF6E7

Open in the interactive natives reference