VoiceCommand

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

Sends a command to the voice client. The voice client must process the command itself.

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.voiceCommand(string command, string data);

Required Arguments

  • command parameter input should be in string type.
  • data parameter input should be in string type.

There is no guarantee that the client will receive the command.

Usage example

In Javascript
Client-Side Function

API.voiceCommand(string command, string data);

References