MiscClient

disablePoliceRestart

DISABLE_POLICE_RESTART0x23285DED6EBD7EA3

The GTA V native DISABLE_POLICE_RESTART of the MISC namespace, as LS:MP client scripts call it: the global function disablePoliceRestart, in JavaScript and in Lua.

SignatureJavaScript
disablePoliceRestart(policeIndex: number, toggle: boolean): void
SignatureLua
disablePoliceRestart(policeIndex: integer, toggle: boolean)

Usage

JavaScript
disablePoliceRestart(policeIndex, toggle);
Lua
disablePoliceRestart(policeIndex, toggle)

Parameters

ParameterTypeJavaScriptLuaDescription
policeIndexintnumberintegerThe police house index.
toggleBOOLbooleanbooleantrue to enable the spawn point, false to disable.

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.

Disables the spawn point at the police house on the specified index.

- Nacorpio

Reference

Namespace
Misc MISC
In the game
void DISABLE_POLICE_RESTART(int policeIndex, BOOL toggle)
Hash
0x23285DED6EBD7EA3

Open in the interactive natives reference