TASK_GO_TO_ENTITY
Hash
0x6A071245EB0D1882Runtime name
TaskGoToEntityNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6A071245EB0D1882Signature
void TASK_GO_TO_ENTITY(Ped ped, Entity target, int duration, float distance, float speed, float p5, int p6);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
target | Entity | — |
duration | int | — |
distance | float | — |
speed | float | — |
p5 | float | — |
p6 | int | — |
Returns void
Usage
TaskGoToEntity(ped, target, duration, distance, speed, p5, p6)
-- always works, by hash
Citizen.InvokeNative(0x6A071245EB0D1882, ped, target, duration, distance, speed, p5, p6)JavaScript and C#
TaskGoToEntity(ped, target, duration, distance, speed, p5, p6);
// by hash
Citizen.invokeNative('0x6A071245EB0D1882', ped, target, duration, distance + 0.0000001, speed + 0.0000001, p5 + 0.0000001, p6);Function.Call((Hash)0x6A071245EB0D1882, ped, target, duration, distance, speed, p5, p6);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.