BlockAllSpeechFromPed
DocsBlockAllSpeechFromPed(ped, shouldBlock, suppressOutgoingNetworkSpeech)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
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
shouldBlock | BOOL | — |
suppressOutgoingNetworkSpeech | BOOL | Defaults to `true`. |
Quick Snippet: Get Ped Handleped
pedUse this to get the player ped handle for this native.
-- Get the player's ped handle (client-side)
local ped = PlayerPedId()
print("Ped handle: " .. ped)
-- For a specific player's ped (server-side):
-- local targetPed = GetPlayerPed(source)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.