AudioClient

blockAllSpeechFromPed

BLOCK_ALL_SPEECH_FROM_PED0xF8AD2EED7C47E8FE

The GTA V native BLOCK_ALL_SPEECH_FROM_PED of the AUDIO namespace, as LS:MP client scripts call it: the global function blockAllSpeechFromPed, in JavaScript and in Lua.

SignatureJavaScript
blockAllSpeechFromPed(ped: Ped, p1: boolean, p2: boolean): void
SignatureLua
blockAllSpeechFromPed(ped: Ped, p1: boolean, p2: boolean)

Usage

JavaScript
blockAllSpeechFromPed(ped, p1, p2);
Lua
blockAllSpeechFromPed(ped, p1, p2)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1BOOLbooleanboolean
p2BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void BLOCK_ALL_SPEECH_FROM_PED(Ped ped, BOOL p1, BOOL p2)
Hash
0xF8AD2EED7C47E8FE
Introduced
Game build 1734 legacy numbering

Open in the interactive natives reference