MISC
GET_DISTANCE_BETWEEN_COORDS
0xF1B760881820C952
Jenkins: 0xF698765E
Signature
// MISC
float GET_DISTANCE_BETWEEN_COORDS(float x1, float y1, float z1, float x2, float y2, float z2, BOOL useZ)
Parameters
| Type | Name |
|---|---|
| float | x1 |
| float | y1 |
| float | z1 |
| float | x2 |
| float | y2 |
| float | z2 |
| BOOL | useZ |
Return type float
Build 323
Documentation
Returns the distance between two three-dimensional points, optionally ignoring the Z values. If useZ is false, only the 2D plane (X-Y) will be considered for calculating the distance. Consider using this faster native instead: SYSTEM::VDIST - DVIST always takes in consideration the 3D coordinates.
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.