isVehicleInGarageArea
IS_VEHICLE_IN_GARAGE_AREA0xCEE4490CD57BB3C2The 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.
isVehicleInGarageArea(garageName: string, vehicle: Vehicle): booleanisVehicleInGarageArea(garageName: string, vehicle: Vehicle): booleanUsage
JavaScript
const result = isVehicleInGarageArea(garageName, vehicle);Lua
local result = isVehicleInGarageArea(garageName, vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
garageName | string | string | string |
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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