playAnimalVocalization
PLAY_ANIMAL_VOCALIZATION0xEE066C7006C49C0AThe GTA V native PLAY_ANIMAL_VOCALIZATION of the AUDIO namespace, as LS:MP client scripts call it: the global function playAnimalVocalization, in JavaScript and in Lua.
playAnimalVocalization(pedHandle: Ped, p1: number, speechName: string): voidplayAnimalVocalization(pedHandle: Ped, p1: integer, speechName: string)Usage
JavaScript
playAnimalVocalization(pedHandle, p1, speechName);Lua
playAnimalVocalization(pedHandle, p1, speechName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pedHandle | Ped | number | integer |
p1 | int | number | integer |
speechName | string | string | string |
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.
Plays sounds from a ped with chop model. For example it used to play bark or sniff sounds. p1 is always 3 or 4294967295 in decompiled scripts. By a quick disassembling I can assume that this arg is unused.
This native is works only when you call it on the ped with right model (ac_chop only ?)
Speech Name can be: CHOP_SNIFF_SEQ CHOP_WHINE CHOP_LICKS_MOUTH CHOP_PANT bark GROWL SNARL BARK_SEQ
Reference
- Namespace
- Audio AUDIO
- In the game
void PLAY_ANIMAL_VOCALIZATION(Ped pedHandle, int p1, const char* speechName)- Hash
0xEE066C7006C49C0A