BlockAllSpeechFromPed — FiveM Natives
0xF8AD2EED7C47E8FE · AUDIO · all
Blocks all speech playing on the given ped, including speech triggered by natives such as PLAY_PED_AMBIENT_SPEECH_WITH_VOICE_NATIVE The flag itself is not synced, it must be called on each machine that wishes to suppress the speech. The SuppressOutgoingNetworkSpeech flag can be set to false if you want speech triggered locally through PLAY_PED_AMBIENT_SPEECH_* related native calls to still be audible on remote machines, even though it was blocked on the local one.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | |
| shouldBlock | BOOL | |
| suppressOutgoingNetworkSpeech | BOOL | Defaults to `true`. |
Returns
void