ResetPedVoice: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} 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.}} ==Syntax== <syntaxhighlight lang="lua"> bool resetPedVoice ( ped thePed ) </syntaxhighlight> {{OOP||ped:resetVoice}} ===Required Arguments=== *'''thePed:''' the ped whose voice to reset. ===Returns=== Returns ''true'' when the voice was successfully reset, ''false...")
 
m (Added issue #3129)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
 
{{Added feature/item|1.6.1|1.6.0|21874|Resets the voice of a ped to a default one.}}
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 [[Resource:Voice|player voice]].}}
{{Note|A ped voice is one of the GTA built in voice character types. Not to be confused with a [[Resource:Voice|player voice]].}}
==Syntax==
==Syntax==
Line 22: Line 21:
setTimer(resetPedVoice, 5000, 1, localPlayer)
setTimer(resetPedVoice, 5000, 1, localPlayer)
end)</syntaxhighlight>
end)</syntaxhighlight>
== Issues ==
{{Issues|
{{Issue|3129|Ped voice remains unchanged}}
}}


==See Also==
==See Also==
{{Client ped functions}}
{{Client ped functions}}

Latest revision as of 17:24, 21 October 2023

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)

Issues

Issue ID Description
#3129 Ped voice remains unchanged


See Also

Shared