setPedScriptedSpeechMuted
Enables or suppresses a ped's GTA scripted speech without muting unrelated game audio.
Syntax
bool setPedScriptedSpeechMuted(ped thePed, bool muted)GTA task mapping
0A09 SCM equivalent: SHUT_CHAR_UP_FOR_SCRIPTED_SPEECH
This does not create a CTask. It calls GTA's per-ped scripted-speech enable/disable methods, matching the adjacent SCM command.
Arguments
thePedpedLiving streamed ped simulated by this client.
mutedboolWhether scripted speech should be suppressed.
Returns
true when the native speech flag was applied; false for invalid ownership, streaming, or ped state.
Ownership and lifecycle
Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.
OOP aliases
ped:setScriptedSpeechMuted(muted)
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →