Skip to content

setPedScriptedSpeechMuted

Client-side

Available in Neon, not standard MTA

Enables or suppresses a ped's GTA scripted speech without muting unrelated game audio.

Syntax

bool setPedScriptedSpeechMuted(ped thePed, bool muted)

GTA task mapping

NATIVE GTA BEHAVIOR 0A09
No CTask is created

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

thePedped

Living streamed ped simulated by this client.

mutedbool

Whether 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

RELATED NEON APIS

Continue exploring

Read the system guide →