AudioClient

addLineToConversation

ADD_LINE_TO_CONVERSATION0xC5EF963405593646

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

SignatureJavaScript
addLineToConversation(
  index: number,
  p1: string,
  p2: string,
  p3: number,
  p4: number,
  p5: boolean,
  p6: boolean,
  p7: boolean,
  p8: boolean,
  p9: number,
  p10: boolean,
  p11: boolean,
  p12: boolean
): void
SignatureLua
addLineToConversation(
  index: integer,
  p1: string,
  p2: string,
  p3: integer,
  p4: integer,
  p5: boolean,
  p6: boolean,
  p7: boolean,
  p8: boolean,
  p9: integer,
  p10: boolean,
  p11: boolean,
  p12: boolean
)

Usage

JavaScript
addLineToConversation(index, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
Lua
addLineToConversation(index, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12)

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger
p1stringstringstring
p2stringstringstring
p3intnumberinteger
p4intnumberinteger
p5BOOLbooleanboolean
p6BOOLbooleanboolean
p7BOOLbooleanboolean
p8BOOLbooleanboolean
p9intnumberinteger
p10BOOLbooleanboolean
p11BOOLbooleanboolean
p12BOOLbooleanboolean

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.

NOTE: ones that are -1, 0 - 35 are determined by a function where it gets a TextLabel from a global then runs,
getCharacterFromAudioConversationFilename and depending on what the result is it goes in check order of 0 - 9 then A - Z then z (lowercase). So it will then return 0 - 35 or -1 if it's 'z'. The func to handle that ^^ is func_67 in dialog_handler.c atleast in TU27 Xbox360 scripts.

p0 is -1, 0 - 35
p1 is a char or string (whatever you wanna call it)
p2 is Global 10597 + i * 6. 'i' is a while(i < 70) loop
p3 is again -1, 0 - 35
p4 is again -1, 0 - 35
p5 is either 0 or 1 (bool ?)
p6 is either 0 or 1 (The func to determine this is bool)
p7 is either 0 or 1 (The func to determine this is bool)
p8 is either 0 or 1 (The func to determine this is bool)
p9 is 0 - 3 (Determined by func_60 in dialogue_handler.c)
p10 is either 0 or 1 (The func to determine this is bool)
p11 is either 0 or 1 (The func to determine this is bool)
p12 is unknown as in TU27 X360 scripts it only goes to p11.

Reference

Namespace
Audio AUDIO
In the game
void ADD_LINE_TO_CONVERSATION(int index, const char* p1, const char* p2, int p3, int p4, BOOL p5, BOOL p6, BOOL p7, BOOL p8, int p9, BOOL p10, BOOL p11, BOOL p12)
Hash
0xC5EF963405593646

Open in the interactive natives reference