AudioClient

interruptConversation

INTERRUPT_CONVERSATION0xA018A12E5C5C2FA6

The GTA V native INTERRUPT_CONVERSATION of the AUDIO namespace, as LS:MP client scripts call it: the global function interruptConversation, in JavaScript and in Lua.

SignatureJavaScript
interruptConversation(ped: Ped, voiceline: string, speaker: string): void
SignatureLua
interruptConversation(ped: Ped, voiceline: string, speaker: string)

Usage

JavaScript
interruptConversation(ped, voiceline, speaker);
Lua
interruptConversation(ped, voiceline, speaker)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
voicelinestringstringstring
speakerstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Example from carsteal3.c: interruptConversation(playerPedId(), "CST4_CFAA", "FRANKLIN");
Voicelines can be found in GTAV\x64\audio\sfx in files starting with "SS_" which seems to mean scripted speech.

Reference

Namespace
Audio AUDIO
In the game
void INTERRUPT_CONVERSATION(Ped ped, const char* voiceline, const char* speaker)
Hash
0xA018A12E5C5C2FA6

Open in the interactive natives reference