TasksClient

taskHandsUp

TASK_HANDS_UP0xF2EAB31979A7F910

The GTA V native TASK_HANDS_UP of the TASK namespace, as LS:MP client scripts call it: the global function taskHandsUp, in JavaScript and in Lua.

SignatureJavaScript
taskHandsUp(
  ped: Ped,
  duration: number,
  facingPed: Ped,
  timeToFacePed: number,
  flags: number
): void
SignatureLua
taskHandsUp(
  ped: Ped,
  duration: integer,
  facingPed: Ped,
  timeToFacePed: integer,
  flags: integer
)

Usage

JavaScript
taskHandsUp(ped, duration, facingPed, timeToFacePed, flags);
Lua
taskHandsUp(ped, duration, facingPed, timeToFacePed, flags)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
durationintnumberinteger
facingPedPednumberinteger
timeToFacePedintnumberinteger
flagsintnumberinteger

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.

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.

Reference

Namespace
Tasks TASK
In the game
void TASK_HANDS_UP(Ped ped, int duration, Ped facingPed, int timeToFacePed, int flags)
Hash
0xF2EAB31979A7F910

Open in the interactive natives reference