Native referenceFiveM

START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE

0x377906D8A31E5586 SHAPETEST
FUNCTION SIGNATURE
int START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE(float x1, float y1, float z1, float x2, float y2, float z2, int flags, Entity entity, int p8);
Property Value
Native Name START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE
Hash 0x377906D8A31E5586
Return Type int
Parameters x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), flags (int), entity (Entity), p8 (int)

Description: Does the same as START_SHAPE_TEST_LOS_PROBE, except blocking until the shape test completes.

Use START_SHAPE_TEST_LOS_PROBE instead. Literally. Rockstar named this correctly: it's expensive, and it's synchronous.

Parameters

  • x1 (float) — Starting X coordinate.
  • y1 (float) — Starting Y coordinate.
  • z1 (float) — Starting Z coordinate.
  • x2 (float) — Ending X coordinate.
  • y2 (float) — Ending Y coordinate.
  • z2 (float) — Ending Z coordinate.
  • flags (int) — See START_SHAPE_TEST_LOS_PROBE.
  • entity (Entity) — An entity to ignore, or 0.
  • p8 (int) — A bit mask with bits 1, 2 and/or 4, relating to collider types. 4 should usually be used.
Back to SHAPETEST