ShootSingleBulletBetweenCoords — FiveM Natives
0x867654CBC7606F2C · MISC · all
Shoots a bullet from the first vector to the second vector. The weapon used as weaponHash should already be loaded via REQUEST_WEAPON_ASSET, otherwise the bullet may fail to materialise.
Parameters
| Name | Type | Description |
|---|---|---|
| x1 | float | The X coordinate to start the shot at. |
| y1 | float | The Y coordinate to start the shot at. |
| z1 | float | The Z coordinate to start the shot at. |
| x2 | float | The X coordinate the shot should end up at. |
| y2 | float | The Y coordinate the shot should end up at. |
| z2 | float | The Z coordinate the shot should end up at. |
| damage | int | The amount of damage the bullet carries. |
| pureAccuracy | BOOL | Whether the bullet should have pinpoint accuracy. |
| weaponHash | Hash | Hash of the weapon the bullet is used as ammunition for. |
| ownerPed | Ped | Owner of the bullet, e.g. if the bullet kills someone the kill feed shows 'X was shot by ownerPed.' |
| isAudible | BOOL | Whether the bullet should be audible. Optional, defaults to true |
| isInvisible | BOOL | Whether the bullet should be invisible. Optional, defaults to false |
| speed | float |