setPedRaceAndVoiceGroup
SET_PED_RACE_AND_VOICE_GROUP0x1B7ABE26CBCBF8C7The 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.
setPedRaceAndVoiceGroup(ped: Ped, p1: number, voiceGroup: Hash): voidsetPedRaceAndVoiceGroup(ped: Ped, p1: integer, voiceGroup: Hash)Usage
JavaScript
setPedRaceAndVoiceGroup(ped, p1, voiceGroup);Lua
setPedRaceAndVoiceGroup(ped, p1, voiceGroup)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
p1 | int | number | integer |
voiceGroup | Hash | number | integer |
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