TasksClientChecked by LS:MP

taskMoveNetworkAdvancedByNameWithInitParams

TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS0x29682E2CCF21E9B5

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

SignatureJavaScript
taskMoveNetworkAdvancedByNameWithInitParams(
  ped: Ped,
  network: string,
  initialParameters: MoveInitialParams,
  x: number,
  y: number,
  z: number,
  rotX: number,
  rotY: number,
  rotZ: number,
  rotOrder: number,
  blendDuration: number,
  allowOverrideCloneUpdate: boolean,
  dictionary: string,
  flags: number
): void
SignatureLua
taskMoveNetworkAdvancedByNameWithInitParams(
  ped: Ped,
  network: string,
  initialParameters: table,
  x: number,
  y: number,
  z: number,
  rotX: number,
  rotY: number,
  rotZ: number,
  rotOrder: integer,
  blendDuration: number,
  allowOverrideCloneUpdate: boolean,
  dictionary: string,
  flags: integer
)

Usage

JavaScript
taskMoveNetworkAdvancedByNameWithInitParams(
  ped, network, initialParameters, x, y, z, rotX, rotY, rotZ, rotOrder, blendDuration,
  allowOverrideCloneUpdate, dictionary, flags
);
Lua
taskMoveNetworkAdvancedByNameWithInitParams(
    ped, network, initialParameters, x, y, z, rotX, rotY, rotZ, rotOrder, blendDuration,
    allowOverrideCloneUpdate, dictionary, flags
)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
taskMoveNetworkAdvancedByNameWithInitParams(
  ped, network, initialParameters, pos, rot, rotOrder, blendDuration, allowOverrideCloneUpdate,
  dictionary, flags
);
Lua · with vectors
taskMoveNetworkAdvancedByNameWithInitParams(
    ped, network, initialParameters, pos, rot, rotOrder, blendDuration,
    allowOverrideCloneUpdate, dictionary, flags
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
networkstringstringstring
initialParametersMoveInitialParamsMoveInitialParamstable
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
rotXfloatnumbernumber
rotYfloatnumbernumber
rotZfloatnumbernumber
rotOrderintnumberinteger
blendDurationfloatnumbernumber
allowOverrideCloneUpdateBOOLbooleanboolean
dictionarystringstringstring
flagsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Local movement graph with origin

Use a local ped owned by the calling resource. blendDuration must be 0–60 and allowOverrideCloneUpdate must be false. Flags may use only bits 0x04 and 0x08. Use finite origin and rotation components within ±100,000 and a rotation order from 0 to 5. The animation runs on the calling client.

ℹ
GTA V Enhanced 1158.16

This LS:MP adapter is available on Enhanced 1158.16. Calls on another build raise an error.

Reference

Namespace
Tasks TASK
In the game
void TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS(Ped ped, const char* network, MoveInitialParams initialParameters, float x, float y, float z, float rotX, float rotY, float rotZ, int rotOrder, float blendDuration, BOOL allowOverrideCloneUpdate, const char* dictionary, int flags)
Hash
0x29682E2CCF21E9B5

Open in the interactive natives reference