resetPedVoice | Multi Theft Auto: Wiki Skip to content

resetPedVoice

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


Resets the voice of a ped to a default one.

Note

A ped voice is one of the GTA built in voice character types. Not to be confused with a player voice .

OOP Syntax Help! I don't understand this!

  • Method:ped:resetVoice(...)

Syntax

bool resetPedVoice ( ped thePed )
Required Arguments
  • thePed: the ped whose voice to reset.

Returns

  • bool: value

Returns true when the voice was successfully reset, false otherwise.

Code Examples

shared
addEventHandler("onClientResourceStart", resourceRoot, function()
setPedVoice(localPlayer, "PED_TYPE_GANG", "VOICE_GNG_MACCER")
setTimer(resetPedVoice, 5000, 1, localPlayer)
end)

See Also