setAnimalMood
SET_ANIMAL_MOOD0xCC97B29285B1DC3BThe GTA V native SET_ANIMAL_MOOD of the AUDIO namespace, as LS:MP client scripts call it: the global function setAnimalMood, in JavaScript and in Lua.
setAnimalMood(animal: Ped, mood: number): voidsetAnimalMood(animal: Ped, mood: integer)Usage
JavaScript
setAnimalMood(animal, mood);Lua
setAnimalMood(animal, mood)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
animal | Ped | number | integer |
mood | int | 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.
mood can be 0 or 1 (it's not a boolean value!). Effects audio of the animal.
Reference
- Namespace
- Audio AUDIO
- In the game
void SET_ANIMAL_MOOD(Ped animal, int mood)- Hash
0xCC97B29285B1DC3B