isCollisionMarkedOutside
IS_COLLISION_MARKED_OUTSIDE0xEEA5AC2EDA7C33E8The 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.
isCollisionMarkedOutside(x: number, y: number, z: number): booleanisCollisionMarkedOutside(x: number, y: number, z: number): booleanUsage
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
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.
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