disablePoliceRestart
DISABLE_POLICE_RESTART0x23285DED6EBD7EA3The 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.
disablePoliceRestart(policeIndex: number, toggle: boolean): voiddisablePoliceRestart(policeIndex: integer, toggle: boolean)Usage
JavaScript
disablePoliceRestart(policeIndex, toggle);Lua
disablePoliceRestart(policeIndex, toggle)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
policeIndex | int | number | integer | The police house index. |
toggle | BOOL | boolean | boolean | true 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