TaskGoToCoordWhileAimingAtCoord — FiveM Natives
0x11315AB3385B8AC0 · TASK · all
Will make the ped move to a coordinate while aiming (and optionally shooting) at given coordinates.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | Ped to task |
| x | float | Destination X position |
| y | float | Destination Y position |
| z | float | Destination Z position |
| aimAtX | float | Aim at target x position |
| aimAtY | float | Aim at target Y position |
| aimAtZ | float | Aim at target Z position |
| moveSpeed | float | mostly 2f, but also 1/1.2f, etc. |
| shoot | BOOL | If true ped will shoot; false - will not |
| p9 | float | Usually 2.0f |
| p10 | float | Usually 0.5f |
| p11 | BOOL | If true ped will stay still; false - will not |
| flags | Any | 0 / 512 / 513, etc |
| p13 | BOOL | |
| firingPattern | Hash | ${firing_pattern_full_auto}, 0xC6EE6B4C |
Returns
void