Skip to main content

Worldprobe::startShapeTestCapsule

Raycast from point to point, where the ray has a radius.

flags:
vehicles=10
peds =12

Iterating through flags yields many ped / vehicle/ object combinations

p9 = 7, but no idea what it does

Entity is an entity to ignore

Syntax​

mp.game.worldprobe.startShapeTestCapsule(x1, y1, z1, x2, y2, z2, radius, flags, entity, p9);

Required Arguments​

  • x1: float
  • y1: float
  • z1: float
  • x2: float
  • y2: float
  • z2: float
  • radius: float
  • flags: int
  • entity: Entity handle or object
  • p9: int

Return value​

  • int

Example​

// todo