MiscClient

disableHospitalRestart

DISABLE_HOSPITAL_RESTART0xC8535819C450EBA8

The 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.

SignatureJavaScript
disableHospitalRestart(hospitalIndex: number, toggle: boolean): void
SignatureLua
disableHospitalRestart(hospitalIndex: integer, toggle: boolean)

Usage

JavaScript
disableHospitalRestart(hospitalIndex, toggle);
Lua
disableHospitalRestart(hospitalIndex, toggle)

Parameters

ParameterTypeJavaScriptLua
hospitalIndexintnumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference