Log In
Sign Up
Game code

MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS

0x389F90D37989AB34 ·RVA 0x03E844A0

Signature

void SHOOT_SINGLE_BULLET_BETWEEN_COORDS(
    Vector3 pos1,
    Vector3 pos2,
    int damage,
    BOOL p7,
    Hash weaponHash,
    Ped ownerPed,
    BOOL isAudible,
    float speed,
    BOOL p13
);

The scripts pass 12 values to this native; the decoded signature lists 9 (arguments the game doesn't read are left out).

Parameters 9

#TypeNameNotes
0Vector3pos1 –
1Vector3pos2 –
2intdamage –
3BOOLp7 –
4HashweaponHash –
5PedownerPed –
6BOOLisAudible –
7floatspeed –
8BOOLp13 –

Returns

void Nothing.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • isInvisible, in RDR3's signature, is not passed in GTA VI.
  • This lines up with RDR3's signature in more than one way; it takes the one that keeps RDR3's arguments first and puts the new ones after them.

Call it

// MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS
invoke<Void>(0x389F90D37989AB34, pos1, pos2, damage, p7, weaponHash, ownerPed, isAudible, speed, p13);

Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.

Improve this page

Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.