CreateExplosion

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

This function creates a explosion.

Syntax

API.createExplosion(int explosionType, Vector3 position, float damageScale, int dimension = 0);

Required Arguments

  • explosionType: parameter input should be in int type (See Explosions).
  • position: parameter input should be in Vector3 type.
  • damageScale: parameter input should be in float type.
  • dimension: parameter input should be in int type.

Usage example(s)

Example Description

API.createExplosion(int explosionType, Vector3 position, float damageScale, int dimension);

References