TasksClientChecked by LS:MP

taskMoveNetworkByNameWithInitParams

TASK_MOVE_NETWORK_BY_NAME_WITH_INIT_PARAMS0x3D45B0B355C5E0C9

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

SignatureJavaScript
taskMoveNetworkByNameWithInitParams(
  ped: Ped,
  network: string,
  initialParameters: MoveInitialParams,
  blendDuration: number,
  allowOverrideCloneUpdate: boolean,
  animDict: string,
  flags: number
): void
SignatureLua
taskMoveNetworkByNameWithInitParams(
  ped: Ped,
  network: string,
  initialParameters: table,
  blendDuration: number,
  allowOverrideCloneUpdate: boolean,
  animDict: string,
  flags: integer
)

Usage

JavaScript
taskMoveNetworkByNameWithInitParams(
  ped, network, initialParameters, blendDuration, allowOverrideCloneUpdate, animDict, flags
);
Lua
taskMoveNetworkByNameWithInitParams(
    ped, network, initialParameters, blendDuration, allowOverrideCloneUpdate, animDict, flags
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
networkstringstringstring
initialParametersMoveInitialParamsMoveInitialParamstable
blendDurationfloatnumbernumber
allowOverrideCloneUpdateBOOLbooleanboolean
animDictstringstringstring
flagsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Local movement graph

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. 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_BY_NAME_WITH_INIT_PARAMS(Ped ped, const char* network, MoveInitialParams initialParameters, float blendDuration, BOOL allowOverrideCloneUpdate, const char* animDict, int flags)
Hash
0x3D45B0B355C5E0C9

Open in the interactive natives reference