GetCrosshairCoordinates

From GT-MP
Jump to: navigation, search
GetCrosshairCoordinates
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Returns the crosshair coordinates

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

Overload 1

In Javascript
Client-Side Function

API.getCrosshairCoordinates();

Required Arguments


NOTE: This function returns data in Raycast type.


Overload 2

In Javascript
Client-Side Function

API.getCrosshairCoordinates(LocalHandle? ignoreEntity);

Required Arguments

  • ignoreEntity parameter input should be in LocalHandle? type.


NOTE: This function returns data in Raycast type.

Usage examples

Overload 1

In Javascript
Client-Side Function

API.getCrosshairCoordinates();

Overload 2

In Javascript
Client-Side Function

API.getCrosshairCoordinates(LocalHandle? ignoreEntity);


References