Player::taskHandsUp: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 20: Line 20:
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Revision as of 10:41, 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

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

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

See also