PedClient

setCreateRandomCopsOnScenarios

SET_CREATE_RANDOM_COPS_ON_SCENARIOS0x444CB7D7DBE6973D

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

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

Usage

JavaScript
setCreateRandomCopsOnScenarios(toggle);
Lua
setCreateRandomCopsOnScenarios(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_ON_SCENARIOS(BOOL toggle)
Hash
0x444CB7D7DBE6973D

Open in the interactive natives reference