InteriorClient

isCollisionMarkedOutside

IS_COLLISION_MARKED_OUTSIDE0xEEA5AC2EDA7C33E8

The GTA V native IS_COLLISION_MARKED_OUTSIDE of the INTERIOR namespace, as LS:MP client scripts call it: the global function isCollisionMarkedOutside, in JavaScript and in Lua.

SignatureJavaScript
isCollisionMarkedOutside(x: number, y: number, z: number): boolean
SignatureLua
isCollisionMarkedOutside(x: number, y: number, z: number): boolean

Usage

JavaScript
const result = isCollisionMarkedOutside(x, y, z);
Lua
local result = isCollisionMarkedOutside(x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
const result = isCollisionMarkedOutside(pos);
Lua · with vectors
local result = isCollisionMarkedOutside(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

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.

Returns true if the collision at the specified coords is marked as being outside (false if there's an interior)

Reference

Namespace
Interior INTERIOR
In the game
BOOL IS_COLLISION_MARKED_OUTSIDE(float x, float y, float z)
Hash
0xEEA5AC2EDA7C33E8
Formerly
_ARE_COORDS_COLLIDING_WITH_EXTERIOR

Open in the interactive natives reference