ObjectClient

isObjectEntirelyInsideGarage

IS_OBJECT_ENTIRELY_INSIDE_GARAGE0x372EF6699146A1E4

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

SignatureJavaScript
isObjectEntirelyInsideGarage(
  garageHash: Hash,
  entity: Entity,
  p2: number,
  p3: number
): boolean
SignatureLua
isObjectEntirelyInsideGarage(
  garageHash: Hash,
  entity: Entity,
  p2: number,
  p3: integer
): boolean

Usage

JavaScript
const result = isObjectEntirelyInsideGarage(garageHash, entity, p2, p3);
Lua
local result = isObjectEntirelyInsideGarage(garageHash, entity, p2, p3)

Parameters

ParameterTypeJavaScriptLua
garageHashHashnumberinteger
entityEntitynumberinteger
p2floatnumbernumber
p3intnumberinteger

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.

Despite the name, it does work for any entity type.

Reference

Namespace
Object OBJECT
In the game
BOOL IS_OBJECT_ENTIRELY_INSIDE_GARAGE(Hash garageHash, Entity entity, float p2, int p3)
Hash
0x372EF6699146A1E4

Open in the interactive natives reference