AudioClient

setPedVoiceGroupFromRaceToPvg

SET_PED_VOICE_GROUP_FROM_RACE_TO_PVG0x0BABC1345ABBFB16

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

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

Usage

JavaScript
setPedVoiceGroupFromRaceToPvg(ped, voiceGroupHash);
Lua
setPedVoiceGroupFromRaceToPvg(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.

Dat151RelType == 29

Reference

Namespace
Audio AUDIO
In the game
void SET_PED_VOICE_GROUP_FROM_RACE_TO_PVG(Ped ped, Hash voiceGroupHash)
Hash
0x0BABC1345ABBFB16
Introduced
Game build 2699 legacy numbering
Formerly
_SET_PED_VOICE_GROUP_RACE

Open in the interactive natives reference