DrawLight

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

Draws light on the specified position, has to be called inside onUpdate.

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

In Javascript
Client-Side Function

API.drawLight(Vector3 position, int red, int green, int blue, double range, double intensity);
API.drawLight(Vector3 position, int red, int green, int blue, double range, double intensity, double shadow);

Overload 1:

  • position parameter input should be in Vector3 type.
  • red parameter input should be in int type.
  • green parameter input should be in int type.
  • blue parameter input should be in int type.
  • range parameter input should be in double type.
  • intensity parameter input should be in double type.

Overload 2:

  • position parameter input should be in Vector3 type.
  • red parameter input should be in int type.
  • green parameter input should be in int type.
  • blue parameter input should be in int type.
  • range parameter input should be in double type.
  • intensity parameter input should be in double type.
  • shadow parameter input should be in double type.

Usage example

In Javascript
Client-Side Function

API.drawLight(Vector3 position, int red, int green, int blue, double range, double intensity);
API.drawLight(Vector3 position, int red, int green, int blue, double range, double intensity, double shadow);

References