AudioClient

setAnimalMood

SET_ANIMAL_MOOD0xCC97B29285B1DC3B

The 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.

SignatureJavaScript
setAnimalMood(animal: Ped, mood: number): void
SignatureLua
setAnimalMood(animal: Ped, mood: integer)

Usage

JavaScript
setAnimalMood(animal, mood);
Lua
setAnimalMood(animal, mood)

Parameters

ParameterTypeJavaScriptLua
animalPednumberinteger
moodintnumberinteger

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

Open in the interactive natives reference