natives.GET DISTANCE BETWEEN COORDS 2D: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|side = client
|games = vc
|games = vc
|type = function
|type = function
|name = natives.GET_DISTANCE_BETWEEN_COORDS_2D
|name = natives.GET_DISTANCE_BETWEEN_COORDS_2D
|parameters = Vec2 position, Vec2 position
|arg1 = Vec2 position World coordinates (x, y).
|parameter1 = Vec2 position 2D coordinates (x, y).
|arg2 = Vec2 position World coordinates (x, y).
|parameter2 = Vec2 position 2D coordinates (x, y).
|desc = retrieves the distance between coords 2d
|usage = retrieves the distance between coords 2d
|return1 = void
|return1 = void
|returnFail1 = void
}}
}}

Latest revision as of 18:52, 13 June 2026

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.GET_DISTANCE_BETWEEN_COORDS_2D(Vec2 position, Vec2 position)
The natives.GET_DISTANCE_BETWEEN_COORDS_2D function is used to retrieves the distance between coords 2d.

Parameters

1) Vec2 position World coordinates (x, y).
2) Vec2 position World coordinates (x, y).

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.