AudioClient

setPedVoiceGroup

SET_PED_VOICE_GROUP0x7CDC8C3B89F661B3

The GTA V native SET_PED_VOICE_GROUP of the AUDIO namespace, as LS:MP client scripts call it: the global function setPedVoiceGroup, in JavaScript and in Lua.

SignatureJavaScript
setPedVoiceGroup(ped: Ped, voiceGroupHash: Hash): void
SignatureLua
setPedVoiceGroup(ped: Ped, voiceGroupHash: Hash)

Usage

JavaScript
setPedVoiceGroup(ped, voiceGroupHash);
Lua
setPedVoiceGroup(ped, voiceGroupHash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
voiceGroupHashHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

From the scripts:

setPedVoiceGroup(playerPedId(), getHashKey("PAIGE_PVG"));
setPedVoiceGroup(playerPedId(), getHashKey("TALINA_PVG"));
setPedVoiceGroup(playerPedId(), getHashKey("FEMALE_LOST_BLACK_PVG"));
setPedVoiceGroup(playerPedId(), getHashKey("FEMALE_LOST_WHITE_PVG"));

Reference

Namespace
Audio AUDIO
In the game
void SET_PED_VOICE_GROUP(Ped ped, Hash voiceGroupHash)
Hash
0x7CDC8C3B89F661B3
Formerly
_SET_PED_VOICE_GROUP

Open in the interactive natives reference