Native referenceFiveM

BLOCK_ALL_SPEECH_FROM_PED

0xF8AD2EED7C47E8FE AUDIO
FUNCTION SIGNATURE
void BLOCK_ALL_SPEECH_FROM_PED(Ped ped, BOOL shouldBlock, BOOL suppressOutgoingNetworkSpeech);
Property Value
Native Name BLOCK_ALL_SPEECH_FROM_PED
Hash 0xF8AD2EED7C47E8FE
Return Type void
Parameters ped (Ped), shouldBlock (BOOL), suppressOutgoingNetworkSpeech (BOOL)

Description: 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

  • ped (Ped)
  • shouldBlock (BOOL)
  • suppressOutgoingNetworkSpeech (BOOL) — Defaults to true.
Back to AUDIO