Перейти к содержанию

Player::setFacialIdleAnimOverride

Материал из RAGE MP Wiki Archive
Версия от 14:33, 17 июля 2020; imported>S373r (Add an example w/ native call (since it works))
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

WARNING: Works only via a native call! Also, animDict argument should be 0

<syntaxhighlight lang="javascript"> const SET_FACIAL_IDLE_ANIM_OVERRIDE = '0xFFC24B988B938B38';

const player = mp.players.local; const mood = 'mood_happy_1'

mp.game.invoke(SET_FACIAL_IDLE_ANIM_OVERRIDE, player.handle, mood, 0); </syntaxhighlight>

See more in a real-world example: https://rage.mp/files/file/108-moods/

Syntax

<syntaxhighlight lang="javascript">player.setFacialIdleAnimOverride(animName, animDict);</syntaxhighlight>

Required Arguments

  • animName: String
  • animDict: String

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also