| Property | Value |
|---|---|
| Native Name | _CREATE_NEW_SCRIPTED_SPEECH |
| Hash | 0x72E4D1C4639BC465 |
| Return Type | int |
| Build | 1207 |
| API Set | client |
| Parameters | ped (Ped), params (Any) |
Description: Create a scripted speech to control speech. If handle is less than 0, it's invalid. params struct for ScriptedSpeechParams see: PLAY_PED_AMBIENT_SPEECH_NATIVE Returns scriptedSpeech handle.
Usage
Lua (Direct):
local result = CreateNewScriptedSpeech(ped, params)
Lua (Hash):
local result = Citizen.InvokeNative(0x72E4D1C4639BC465, ped, params)