MiscClient

shootSingleBulletBetweenCoordsIgnoreEntity

SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY0xE3A7742E0B7A2F8B

The GTA V native SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY of the MISC namespace, as LS:MP client scripts call it: the global function shootSingleBulletBetweenCoordsIgnoreEntity, in JavaScript and in Lua.

SignatureJavaScript
shootSingleBulletBetweenCoordsIgnoreEntity(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  damage: number,
  p7: boolean,
  weaponHash: Hash,
  ownerPed: Ped,
  isAudible: boolean,
  isInvisible: boolean,
  speed: number,
  entity: Entity,
  p14: any
): void
SignatureLua
shootSingleBulletBetweenCoordsIgnoreEntity(
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  damage: integer,
  p7: boolean,
  weaponHash: Hash,
  ownerPed: Ped,
  isAudible: boolean,
  isInvisible: boolean,
  speed: number,
  entity: Entity,
  p14: any
)

Usage

JavaScript
shootSingleBulletBetweenCoordsIgnoreEntity(
  x1, y1, z1, x2, y2, z2, damage, p7, weaponHash, ownerPed, isAudible, isInvisible, speed,
  entity, p14
);
Lua
shootSingleBulletBetweenCoordsIgnoreEntity(
    x1, y1, z1, x2, y2, z2, damage, p7, weaponHash, ownerPed, isAudible, isInvisible, speed,
    entity, p14
)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
shootSingleBulletBetweenCoordsIgnoreEntity(
  pos1, pos2, damage, p7, weaponHash, ownerPed, isAudible, isInvisible, speed, entity, p14
);
Lua · with vectors
shootSingleBulletBetweenCoordsIgnoreEntity(
    pos1, pos2, damage, p7, weaponHash, ownerPed, isAudible, isInvisible, speed, entity, p14
)

Parameters

ParameterTypeJavaScriptLua
x1floatnumbernumber
y1floatnumbernumber
z1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber
z2floatnumbernumber
damageintnumberinteger
p7BOOLbooleanboolean
weaponHashHashnumberinteger
ownerPedPednumberinteger
isAudibleBOOLbooleanboolean
isInvisibleBOOLbooleanboolean
speedfloatnumbernumber
entityEntitynumberinteger
p14Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

entity - entity to ignore

Reference

Namespace
Misc MISC
In the game
void SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY(float x1, float y1, float z1, float x2, float y2, float z2, int damage, BOOL p7, Hash weaponHash, Ped ownerPed, BOOL isAudible, BOOL isInvisible, float speed, Entity entity, Any p14)
Hash
0xE3A7742E0B7A2F8B
Formerly
_SHOOT_SINGLE_BULLET_BETWEEN_COORDS_PRESET_PARAMS

Open in the interactive natives reference