Player::taskHandsUp: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 10: Line 10:
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript" highlight="5">
// This will place hands up constantly
// This will place hands up constantly
var localPlayer = mp.players.local;
var localPlayer = mp.players.local;
Line 16: Line 18:
localPlayer.taskHandsUp(-1, localPlayer.handle, 0, false);
localPlayer.taskHandsUp(-1, localPlayer.handle, 0, false);
</syntaxhighlight>
</syntaxhighlight>
</div>


==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]

Revision as of 10:42, 29 July 2018

In the scripts, p3 was always -1.

p3 seems to be duration or timeout of turn animation.
Also facingPed can be 0 or -1 so ped will just raise hands up.

Syntax

player.taskHandsUp(duration, facingPed, p3, p4);

Required Arguments

  • duration: int
  • facingPed: Ped handle or object
  • p3: int
  • p4: Boolean

Return value

  • Undefined

Example

Client-Side
// This will place hands up constantly
var localPlayer = mp.players.local;

localPlayer.taskHandsUp(-1, localPlayer.handle, 0, false);

See also