ScreenToWorldMaintainRatio

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

Client-side Function Description

Syntax

In Javascript
Client-Side Function

API.screenToWorldMaintainRatio(PointF pos);
API.screenToWorldMaintainRatio(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.


NOTE: This function returns data in Vector3 type.

Usage example(s)

In Javascript
Client-Side Function

API.screenToWorldMaintainRatio(pos);

References