TaskGoToCoordWhileAimingAtEntity — FiveM Natives
0xB2A16444EAD9AE47 · TASK · all
Will make the ped move to a coordinate while aiming (and optionally shooting) at the given entity. ``cpp enum eFiringPatternHashes { FIRING_PATTERN_DEFAULT = 0, FIRING_PATTERN_BURST_FIRE = -687903391, FIRING_PATTERN_BURST_FIRE_DRIVEBY = -753768974, FIRING_PATTERN_FULL_AUTO = -957453492, FIRING_PATTERN_SINGLE_SHOT = 1566631136, FIRING_PATTERN_DELAY_FIRE_BY_ONE_SEC = 2055493265, FIRING_PATTERN_BURST_FIRE_HELI = -1857128337, FIRING_PATTERN_SHORT_BURSTS = 445831135, FIRING_PATTERN_BURST_FIRE_MICRO = 1122960381, FIRING_PATTERN_SLOW_FIRE_TANK = -490063247, FIRING_PATTERN_TAMPA_MORTAR = -1842093953 } ``
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | Ped to task |
| x | float | Destination X position |
| y | float | Destination Y position |
| z | float | Destination Z position |
| entityToAimAt | Entity | Entity that the ped will aim at. |
| moveSpeed | float | Mostly 2f, but also 1/1.2f, etc. |
| shoot | BOOL | If true ped will shoot; false - will not |
| targetRadius | float | Usually 0.5f |
| slowDistance | float | Usually 4f |
| useNavMesh | BOOL | |
| navFlags | int | Usually 0 or 64 |
| instantBlendAtAim | BOOL |