ResetPedVoice: Difference between revisions
		
		
		
		
		
		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...")  | 
				 (Add new feature note.)  | 
				||
| 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==  | ||
Revision as of 15:50, 30 July 2023
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
- canPedBeKnockedOffBike
 - getPedAnalogControlState
 - getPedAnimation
 - getPedBonePosition
 - getPedCameraRotation
 - getPedControlState
 - getPedMoveState
 - getPedOxygenLevel
 - getPedSimplestTask
 - getPedTargetCollision
 - getPedTargetEnd
 - getPedTargetStart
 - getPedTask
 - getPedVoice
 - getPedWeaponMuzzlePosition
 - givePedWeapon
 - isPedBleeding
 - isPedDoingTask
 - isPedTargetingMarkerEnabled
 - setAnalogControlState
 - setPedAimTarget
 - setPedAnalogControlState
 - setPedBleeding
 - setPedCameraRotation
 - setPedCanBeKnockedOffBike
 - setPedControlState
 - setPedEnterVehicle
 - setPedExitVehicle
 - IsPedFootBloodEnabled
 - setPedFootBloodEnabled
 - setPedLookAt
 - setPedOxygenLevel
 - setPedTargetingMarkerEnabled
 - setPedVoice
 - Shared
 - addPedClothes
 - getPedClothes
 - removePedClothes
 - createPed
 - getPedAmmoInClip
 - getPedArmor
 - getPedFightingStyle
 - getPedOccupiedVehicle
 - getPedOccupiedVehicleSeat
 - getPedStat
 - getPedTarget
 - getPedTotalAmmo
 - getPedWalkingStyle
 - getPedWeapon
 - getPedWeaponSlot
 - getPedContactElement
 - getValidPedModels
 - isPedChoking
 - isPedDead
 - isPedDoingGangDriveby
 - isPedDucked
 - isPedHeadless
 - isPedInVehicle
 - isPedOnGround
 - isPedReloadingWeapon
 - isPedWearingJetpack
 - killPed
 - removePedFromVehicle
 - setPedAnimation
 - setPedAnimationProgress
 - setPedAnimationSpeed
 - setPedArmor
 - setPedDoingGangDriveby
 - setPedFightingStyle
 - setPedHeadless
 - setPedStat
 - setPedWalkingStyle
 - setPedWeaponSlot
 - warpPedIntoVehicle