StartDialogue
Start a dialogue with a entity
| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
Entity | entity | - | The entity with which you want to start a dialogue | |
Distance | number | - | The distance | |
Function | function | - | The function that is called when the player responds with the entity | |
stopWhenTalking | boolean | - | If true the ped will stop and talk to the player |
Returns
| Child | Data Type | Description |
|---|---|---|
| Question | function | The function to set the questions |
| Response | function | The function to set the responses |
| LastQuestion | function | The function to set the last response by the entity |
Dont need to be called every frame
Example
