VehicleClient

isVehicleInGarageArea

IS_VEHICLE_IN_GARAGE_AREA0xCEE4490CD57BB3C2

The GTA V native IS_VEHICLE_IN_GARAGE_AREA of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleInGarageArea, in JavaScript and in Lua.

SignatureJavaScript
isVehicleInGarageArea(garageName: string, vehicle: Vehicle): boolean
SignatureLua
isVehicleInGarageArea(garageName: string, vehicle: Vehicle): boolean

Usage

JavaScript
const result = isVehicleInGarageArea(garageName, vehicle);
Lua
local result = isVehicleInGarageArea(garageName, vehicle)

Parameters

ParameterTypeJavaScriptLua
garageNamestringstringstring
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

garageName example "Michael - Beverly Hills"

Full list of garages by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/garages.json

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_IN_GARAGE_AREA(const char* garageName, Vehicle vehicle)
Hash
0xCEE4490CD57BB3C2

Open in the interactive natives reference