AudioClient

setPedRaceAndVoiceGroup

SET_PED_RACE_AND_VOICE_GROUP0x1B7ABE26CBCBF8C7

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

SignatureJavaScript
setPedRaceAndVoiceGroup(ped: Ped, p1: number, voiceGroup: Hash): void
SignatureLua
setPedRaceAndVoiceGroup(ped: Ped, p1: integer, voiceGroup: Hash)

Usage

JavaScript
setPedRaceAndVoiceGroup(ped, p1, voiceGroup);
Lua
setPedRaceAndVoiceGroup(ped, p1, voiceGroup)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1intnumberinteger
voiceGroupHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void SET_PED_RACE_AND_VOICE_GROUP(Ped ped, int p1, Hash voiceGroup)
Hash
0x1B7ABE26CBCBF8C7
Introduced
Game build 372 legacy numbering

Open in the interactive natives reference