- Documentation
- Server functions
- resetPedVoice
Function
resetPedVoice
Removes the voice stored with setPedVoice, i.e. returns the ped to its model's original voice. Afterwards getPedVoice returns false.
Syntax
bool resetPedVoice(ped ped)Arguments
pedped- A player or an NPC.
Returns
true on success.
Example
resetPedVoice(npc)
See also
setPedVoiceStores a voice bank type and name for a ped (e.g. type"PED_TYPE_GEN"and name"VOICE_GEN_BBDYG1"). The value is for scripts and comes back fromgetPedVoice; the Definitive Edition game does not change the ped's lines based on it yet. Custom lines can be played withplayPedVoiceLineand a client script.getPedVoiceReturns the voice bank type and name stored withsetPedVoice. Returnsfalsewhen no voice was set.