addLineToConversation
ADD_LINE_TO_CONVERSATION0xC5EF963405593646The 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.
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
): voidaddLineToConversation(
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
addLineToConversation(index, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);addLineToConversation(index, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
index | int | number | integer |
p1 | string | string | string |
p2 | string | string | string |
p3 | int | number | integer |
p4 | int | number | integer |
p5 | BOOL | boolean | boolean |
p6 | BOOL | boolean | boolean |
p7 | BOOL | boolean | boolean |
p8 | BOOL | boolean | boolean |
p9 | int | number | integer |
p10 | BOOL | boolean | boolean |
p11 | BOOL | boolean | boolean |
p12 | BOOL | boolean | boolean |
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