addPedToConversation
ADD_PED_TO_CONVERSATION0x95D9F4BC443956E7The GTA V native ADD_PED_TO_CONVERSATION of the AUDIO namespace, as LS:MP client scripts call it: the global function addPedToConversation, in JavaScript and in Lua.
addPedToConversation(index: number, ped: Ped, p2: string): voidaddPedToConversation(index: integer, ped: Ped, p2: string)Usage
JavaScript
addPedToConversation(index, ped, p2);Lua
addPedToConversation(index, ped, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
index | int | number | integer |
ped | Ped | number | integer |
p2 | string | string | string |
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.
4 calls in the b617d scripts. The only one with p0 and p2 in clear text:
addPedToConversation(5, l_AF, "DINAPOLI");One of the 2 calls in dialogue_handler.c p0 is in a while-loop, and so is determined to also possibly be 0 - 15.
Reference
- Namespace
- Audio AUDIO
- In the game
void ADD_PED_TO_CONVERSATION(int index, Ped ped, const char* p2)- Hash
0x95D9F4BC443956E7