| Property | Value |
|---|---|
| Native Name | _PLAY_SOUND_FROM_SCRIPTED_SPEECH |
| Hash | 0xB18FEC133C7C6C69 |
| Return Type | Any |
| Build | 1207 |
| API Set | client |
| Parameters | scriptedSpeech (int) |
Description: Play/advance a scripted speech created via _CREATE_NEW_SCRIPTED_PED_AMBIENT_SPEECH and return a status code. Return values: 0 = not ready/invalid/failed 1 = started/playing 2 = finished/consumed (you can drop the handle) Typical usage: poll this in a tick after creating the speech; when it returns 2, clear your handle.
Usage
Lua (Direct):
local result = PlaySoundFromScriptedSpeech(scriptedSpeech)
Lua (Hash):
local result = Citizen.InvokeNative(0xB18FEC133C7C6C69, scriptedSpeech)