TASK_GOTO_ENTITY_AIMING
Hash
0xA9DA48FAB8A76C12Runtime name
TaskGotoEntityAimingNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA9DA48FAB8A76C12Signature
void TASK_GOTO_ENTITY_AIMING(Ped ped, Entity target, float distanceToStopAt, float StartAimingDist);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
target | Entity | — |
distanceToStopAt | float | — |
StartAimingDist | float | — |
Returns void
Description
ped = Ped you want to perform this task.
target = the Entity they should aim at.
distanceToStopAt = distance from the target, where the ped should stop to aim.
StartAimingDist = distance where the ped should start to aim.
Usage
TaskGotoEntityAiming(ped, target, distanceToStopAt, StartAimingDist)
-- always works, by hash
Citizen.InvokeNative(0xA9DA48FAB8A76C12, ped, target, distanceToStopAt, StartAimingDist)JavaScript and C#
TaskGotoEntityAiming(ped, target, distanceToStopAt, StartAimingDist);
// by hash
Citizen.invokeNative('0xA9DA48FAB8A76C12', ped, target, distanceToStopAt + 0.0000001, StartAimingDist + 0.0000001);Function.Call((Hash)0xA9DA48FAB8A76C12, ped, target, distanceToStopAt, StartAimingDist);- 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.