SetPedVoice
From Multi Theft Auto: Wiki
Changes the voice of a ped.
Note: A ped voice is one of the GTA built in voice character types. Not to be confused with a [player voice] |
Syntax
bool setPedVoice ( ped thePed, string voiceType, string voiceName )
OOP Syntax Help! I don't understand this!
- Method: ped:setVoice(...)
Required Arguments
- thePed: the ped whose voice to change.
- voiceType: the voice type. See ped voices for possible types.
- voiceName: the voice name within the specified type. See ped voices for possible voices.
Returns
Returns true when the voice was successfully set, false otherwise.
Example
addEventHandler("onClientResourceStart", getResourceRootElement(), function() setPedVoice(getLocalPlayer(), "PED_TYPE_GANG", "VOICE_GNG_MACCER") end )
See Also
- getPedAmmoInClip
- getPedAnalogControlState
- getPedAnimation
- getPedArmor
- getPedBonePosition
- getPedCameraRotation
- getPedClothes
- getPedContactElement
- getPedControlState
- getPedFightingStyle
- getPedMoveState
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedOxygenLevel
- getPedSimplestTask
- getPedStat
- getPedTarget
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedTotalAmmo
- getPedVoice
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponMuzzlePosition
- getPedWeaponSlot
- getValidPedModels
- givePedWeapon
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDoingTask
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedClothes
- removePedFromVehicle
- setAnalogControlState
- setPedAimTarget
- setPedAnalogControlState
- setPedAnimation
- setPedAnimationProgress
FROM VERSION 1.5.7 r19626 ONWARDS
FROM VERSION 1.5.7 r19626 ONWARDS
- setPedFootBloodEnabled
- setPedHeadless
- setPedLookAt
- setPedOnFire
- setPedOxygenLevel
- setPedStat
- setPedTargetingMarkerEnabled
- setPedVoice
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle