TasksClient

taskAimGunScripted

TASK_AIM_GUN_SCRIPTED0x7A192BE16D373D00

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

SignatureJavaScript
taskAimGunScripted(
  ped: Ped,
  scriptTask: Hash,
  disableBlockingClip: boolean,
  instantBlendToAim: boolean
): void
SignatureLua
taskAimGunScripted(
  ped: Ped,
  scriptTask: Hash,
  disableBlockingClip: boolean,
  instantBlendToAim: boolean
)

Usage

JavaScript
taskAimGunScripted(ped, scriptTask, disableBlockingClip, instantBlendToAim);
Lua
taskAimGunScripted(ped, scriptTask, disableBlockingClip, instantBlendToAim)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
scriptTaskHashnumberinteger
disableBlockingClipBOOLbooleanboolean
instantBlendToAimBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_AIM_GUN_SCRIPTED(Ped ped, Hash scriptTask, BOOL disableBlockingClip, BOOL instantBlendToAim)
Hash
0x7A192BE16D373D00

Open in the interactive natives reference