disableHospitalRestart
DISABLE_HOSPITAL_RESTART0xC8535819C450EBA8The GTA V native DISABLE_HOSPITAL_RESTART of the MISC namespace, as LS:MP client scripts call it: the global function disableHospitalRestart, in JavaScript and in Lua.
disableHospitalRestart(hospitalIndex: number, toggle: boolean): voiddisableHospitalRestart(hospitalIndex: integer, toggle: boolean)Usage
JavaScript
disableHospitalRestart(hospitalIndex, toggle);Lua
disableHospitalRestart(hospitalIndex, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hospitalIndex | int | number | integer |
toggle | BOOL | boolean | boolean |
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.
The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.
Reference
- Namespace
- Misc MISC
- In the game
void DISABLE_HOSPITAL_RESTART(int hospitalIndex, BOOL toggle)- Hash
0xC8535819C450EBA8