ObjectClient

clearGarage

CLEAR_GARAGE0xDA05194260CDCDF9

The GTA V native CLEAR_GARAGE of the OBJECT namespace, as LS:MP client scripts call it: the global function clearGarage, in JavaScript and in Lua.

SignatureJavaScript
clearGarage(garageHash: Hash, isNetwork: boolean): void
SignatureLua
clearGarage(garageHash: Hash, isNetwork: boolean)

Usage

JavaScript
clearGarage(garageHash, isNetwork);
Lua
clearGarage(garageHash, isNetwork)

Parameters

ParameterTypeJavaScriptLua
garageHashHashnumberinteger
isNetworkBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Object OBJECT
In the game
void CLEAR_GARAGE(Hash garageHash, BOOL isNetwork)
Hash
0xDA05194260CDCDF9
Introduced
Game build 678 legacy numbering
Formerly
_CLEAR_GARAGE_AREA

Open in the interactive natives reference