taskMoveNetworkAdvancedByNameWithInitParams
TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS0x29682E2CCF21E9B5The 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.
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
): voidtaskMoveNetworkAdvancedByNameWithInitParams(
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
taskMoveNetworkAdvancedByNameWithInitParams(
ped, network, initialParameters, x, y, z, rotX, rotY, rotZ, rotOrder, blendDuration,
allowOverrideCloneUpdate, dictionary, flags
);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.
taskMoveNetworkAdvancedByNameWithInitParams(
ped, network, initialParameters, pos, rot, rotOrder, blendDuration, allowOverrideCloneUpdate,
dictionary, flags
);taskMoveNetworkAdvancedByNameWithInitParams(
ped, network, initialParameters, pos, rot, rotOrder, blendDuration,
allowOverrideCloneUpdate, dictionary, flags
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
network | string | string | string |
initialParameters | MoveInitialParams | MoveInitialParams | table |
x | float | number | number |
y | float | number | number |
z | float | number | number |
rotX | float | number | number |
rotY | float | number | number |
rotZ | float | number | number |
rotOrder | int | number | integer |
blendDuration | float | number | number |
allowOverrideCloneUpdate | BOOL | boolean | boolean |
dictionary | string | string | string |
flags | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
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.
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