Colshape::isPointWithin
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.
Checking if a point is within the colshape.
Parameters
- position: Vector3
Syntax
Server-Side
Boolean colshape.isPointWithin(position);
Example
Server-Side
let position = player.position;
if (colshape.isPointWithin(position)) {
console.log("Inside Colshape");
} else {
console.log("Outside Colshape");
}