ScreenToWorld

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

Client-side Function Description

Syntax

In Javascript
Client-Side Function

API.screenToWorld(PointF pos);
API.screenToWorld(PointF pos, Vector3 camPos, Vector3 camRot, LocalHandle? ignoreEntity = null);

Required Arguments

  • pos: parameter input should be in PointF type.

Optional Arguments

  • camPos: parameter input should be in Vector3 type.
  • camRot: parameter input should be in Vector3 type.
  • ignoreEntity: parameter input should be in LocalHandle type. (Version 0.1.7)


NOTE: This function returns data in Vector3 type.

Usage example(s)

In Javascript
Client-Side Function

API.screenToWorld(pos);

References