setPedVoiceGroup
SET_PED_VOICE_GROUP0x7CDC8C3B89F661B3The 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.
setPedVoiceGroup(ped: Ped, voiceGroupHash: Hash): voidsetPedVoiceGroup(ped: Ped, voiceGroupHash: Hash)Usage
JavaScript
setPedVoiceGroup(ped, voiceGroupHash);Lua
setPedVoiceGroup(ped, voiceGroupHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
voiceGroupHash | Hash | number | integer |
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