Skip to main content

Raycasting::testVisualDrawablePointToPoint

Client-side function

JavaScript​

Required Params​

  • rayStart: Vector3 — The starting position of the raycast.
  • rayEnd: Vector3 — The ending position of the raycast.
  • flags: number (optional, default: -1) — Flags that determine the behavior of the raycast.

Return value​

  • 'Object' — Returns an object containing information about the hit result.

Syntax​

mp.raycasting.testVisualDrawablePointToPoint(rayStart, rayEnd, flags = -1)

Example​

// todo