_UPDATE_TASK_GO_TO_COORD_WITH_OFFSET
Updates the target and offset of the running go-to-coord-with-offset task of ped.
Signature
void _UPDATE_TASK_GO_TO_COORD_WITH_OFFSET(Ped ped, float targetX, float targetY, float targetZ, float offsetX, float offsetY, float offsetZ, float speed, float tolerance); // 0x3FFCD7BBA074CC80 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | targetX | float |
| 3 | targetY | float |
| 4 | targetZ | float |
| 5 | offsetX | float |
| 6 | offsetY | float |
| 7 | offsetZ | float |
| 8 | speed | float |
| 9 | tolerance | float |
Facts
| Name | _UPDATE_TASK_GO_TO_COORD_WITH_OFFSET |
|---|---|
| Hash | 0x3FFCD7BBA074CC80 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x3FFCD7BBA074CC80, -- _UPDATE_TASK_GO_TO_COORD_WITH_OFFSET
PlayerPedId(), -- Ped ped
0.0, -- float targetX
0.0, -- float targetY
0.0, -- float targetZ
0.0, -- float offsetX
0.0, -- float offsetY
0.0, -- float offsetZ
0.0, -- float speed
0.0 -- float tolerance
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x3FFCD7BBA074CC80", // _UPDATE_TASK_GO_TO_COORD_WITH_OFFSET
PlayerPedId(), // Ped ped
0.0, // float targetX
0.0, // float targetY
0.0, // float targetZ
0.0, // float offsetX
0.0, // float offsetY
0.0, // float offsetZ
0.0, // float speed
0.0 // float tolerance
);Function.Call((Hash)0x3FFCD7BBA074CC80, // _UPDATE_TASK_GO_TO_COORD_WITH_OFFSET
API.PlayerPedId(), // Ped ped
0.0f, // float targetX
0.0f, // float targetY
0.0f, // float targetZ
0.0f, // float offsetX
0.0f, // float offsetY
0.0f, // float offsetZ
0.0f, // float speed
0.0f // float tolerance
);Related TASK natives
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS_WITH_CRUISE_SPEED
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD_USING_COMBAT_STYLE
- TASK_FOLLOW_TO_OFFSET_OF_COORD
- TASK_GO_STRAIGHT_TO_COORD
- TASK_GO_TO_COORD_ANY_MEANS
- TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.