GetCameraPosition

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

This function should return the given Camera position.

Syntax

API.getCameraPosition(GlobalCamera cam);

Required Arguments

  • cam: parameter input should be in GlobalCamera type.

NOTE: This function returns data in Vector3 type.

Usage example

Vector3 myAwesomeCamPos = API.getCameraPosition(myCamera);

References