Native referenceFiveM

VDIST2

0xB7A628320EFF8E47 SYSTEM
FUNCTION SIGNATURE
float VDIST2(float x1, float y1, float z1, float x2, float y2, float z2);
Property Value
Native Name VDIST2
Hash 0xB7A628320EFF8E47
Return Type float
Parameters x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float)

Description: Calculates distance between vectors but does not perform Sqrt operations. Its way faster than VDIST, but it's not faster than direct mathematical calculations.

NativeDB Introduced: v323

Parameters

  • x1 (float) — X coordinate of the first point.
  • y1 (float) — Y coordinate of the first point.
  • z1 (float) — Z coordinate of the first point. Represents the height or elevation at the first point.
  • x2 (float) — X coordinate of the second point.
  • y2 (float) — Y coordinate of the second point.
  • z2 (float) — Z coordinate of the second point. Represents the height or elevation at the second point.
Back to SYSTEM