ResetPedVoice: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Add new feature note.)
m (Fixed all related issues)
Tag: Manual revert
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 16:58, 26 May 2024

BETA: NEW FEATURE (BUILD: 1.6.0 r21874)
Resets the voice of a ped to a default one.
[[{{{image}}}|link=|]] Note: A ped voice is one of the GTA built in voice character types. Not to be confused with a player voice.

Syntax

bool resetPedVoice ( ped thePed )

OOP Syntax Help! I don't understand this!

Method: ped:resetVoice(...)


Required Arguments

  • thePed: the ped whose voice to reset.

Returns

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

Example

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

See Also