PlayAmbientSpeech

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

Makes the specified ped "talk".

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.playAmbientSpeech(LocalHandle ped, string speechName, int speechModifier = 0);

Overload 1:

  • ped parameter input should be in LocalHandle type.
  • speechName parameter input should be in string type.

Optional:

API.playAmbientSpeech(LocalHandle ped, string voiceName, string speechName, int speechModifier = 0);

Overload 2:

  • ped parameter input should be in LocalHandle type.
  • voiceName parameter input should be in string type.
  • speechName parameter input should be in string type.

Optional:

Usage example

In Javascript
Client-Side Function

API.playAmbientSpeech(LocalHandle ped, string speechName, int speechModifier = 0);
API.playAmbientSpeech(LocalHandle ped, string voiceName, string speechName, int speechModifier = 0)

References