TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS
Starts the move network moveNetworkDefName on ped at the given position and rotation, with initial parameters from taskData.
Signature
void TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS(Ped ped, const char* moveNetworkDefName, Any* taskData, float xPos, float yPos, float zPos, float xRot, float yRot, float zRot, int p9, float p10, int p11, int p12, int flag, int p14); // 0x7B6A04F98BBAFB2C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | moveNetworkDefName | const char* |
| 3 | taskData | Any* (out pointer) |
| 4 | xPos | float |
| 5 | yPos | float |
| 6 | zPos | float |
| 7 | xRot | float |
| 8 | yRot | float |
| 9 | zRot | float |
| 10 | p9 | int |
| 11 | p10 | float |
| 12 | p11 | int |
| 13 | p12 | int |
| 14 | flag | int |
| 15 | p14 | int |
Facts
| Name | TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS |
|---|---|
| Hash | 0x7B6A04F98BBAFB2C |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local taskData = Citizen.InvokeNative(0x7B6A04F98BBAFB2C, -- TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS
PlayerPedId(), -- Ped ped
"text", -- const char* moveNetworkDefName
Citizen.PointerValueInt(), -- Any* taskData
0.0, -- float xPos
0.0, -- float yPos
0.0, -- float zPos
0.0, -- float xRot
0.0, -- float yRot
0.0, -- float zRot
0, -- int p9
0.0, -- float p10
0, -- int p11
0, -- int p12
0, -- int flag
0 -- int p14
)
print(taskData)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const taskData = Citizen.invokeNative("0x7B6A04F98BBAFB2C", // TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS
PlayerPedId(), // Ped ped
"text", // const char* moveNetworkDefName
Citizen.pointerValueInt(), // Any* taskData
0.0, // float xPos
0.0, // float yPos
0.0, // float zPos
0.0, // float xRot
0.0, // float yRot
0.0, // float zRot
0, // int p9
0.0, // float p10
0, // int p11
0, // int p12
0, // int flag
0 // int p14
);
console.log(taskData)var taskDataArg = new OutputArgument();
Function.Call((Hash)0x7B6A04F98BBAFB2C, // TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS
API.PlayerPedId(), // Ped ped
"text", // const char* moveNetworkDefName
taskDataArg, // Any* taskData
0.0f, // float xPos
0.0f, // float yPos
0.0f, // float zPos
0.0f, // float xRot
0.0f, // float yRot
0.0f, // float zRot
0, // int p9
0.0f, // float p10
0, // int p11
0, // int p12
0, // int flag
0 // int p14
);
int taskData = taskDataArg.GetResult<int>();Related TASK natives
- TASK_MOVE_NETWORK_ADVANCED_BY_NAME_WITH_INIT_PARAMS_ATTACHED
- TASK_MOVE_NETWORK_BY_NAME_WITH_INIT_PARAMS
- TASK_MOVE_NETWORK_BY_NAME
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS_WITH_CRUISE_SPEED
- TASK_MOVE_BE_IN_FORMATION
- TASK_MOVE_FOLLOW_ROAD_USING_NAVMESH
- TASK_MOVE_IN_TRAFFIC
- TASK_MOVE_IN_TRAFFIC_AWAY_FROM_ENTITY
- TASK_MOVE_IN_TRAFFIC_TO_DESTINATION
- _GET_TASK_MOVE_NETWORK_ID
- _GET_TASK_MOVE_NETWORK_PHASE_FLOAT
- _SET_TASK_MOVE_NETWORK_SIGNAL_FLOAT_2
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.