GTA V Nativesvector3Vector3::lengthOn this pageVector3::lengthThis function returns the magnitude of a Vector3. It's calculated by square rooting the result of x * x + y * y + z * z. Syntax ``` vector.length(); ``` Returns The vector's magnitude. Example This example calculates the distance between two players. See Also