taskMoveNetworkByNameWithInitParams
TASK_MOVE_NETWORK_BY_NAME_WITH_INIT_PARAMS0x3D45B0B355C5E0C9The 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.
taskMoveNetworkByNameWithInitParams(
ped: Ped,
network: string,
initialParameters: MoveInitialParams,
blendDuration: number,
allowOverrideCloneUpdate: boolean,
animDict: string,
flags: number
): voidtaskMoveNetworkByNameWithInitParams(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
network | string | string | string |
initialParameters | MoveInitialParams | MoveInitialParams | table |
blendDuration | float | number | number |
allowOverrideCloneUpdate | BOOL | boolean | boolean |
animDict | string | string | string |
flags | int | number | integer |
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