PlaySoundFromCoord

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

This function plays a sound from coordinate to the client.

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.playSoundFromCoord(string soundName, Vector3 position);

Required Arguments

  • soundName: parameter input should be in string type.
  • position: parameter input should be in Vector3 type.

In Javascript
Client-Side Function

API.playSoundFromCoord(string soundName, string soundSetName, Vector3 position);
  • soundName: parameter input should be in string type.
  • soundSetName: parameter input should be in string type.
  • position: parameter input should be in Vector3 type.

Usage example

In Javascript
Client-Side Function

API.playSoundFromCoord(string soundName, Vector3 position);
API.playSoundFromCoord(string soundName, string soundSetName, Vector3 position);

References