Player::setFacialIdleAnimOverride: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(Add an example w/ native call (since it works))
 
Line 1: Line 1:
__TOC__
'''WARNING:'''
Works only via a native call! Also, <tt>animDict</tt> argument should be <tt>0</tt>
<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==
==Syntax==

Latest revision as of 14:33, 17 July 2020

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

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);

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

Syntax

player.setFacialIdleAnimOverride(animName, animDict);

Required Arguments

  • animName: String
  • animDict: String

Return value

  • Undefined

Example

// todo

See also