PedClient

setCreateRandomCops

SET_CREATE_RANDOM_COPS0x102E68B2024D536D

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

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

Usage

JavaScript
setCreateRandomCops(toggle);
Lua
setCreateRandomCops(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(BOOL toggle)
Hash
0x102E68B2024D536D

Open in the interactive natives reference