Log In
Sign Up
Game code

TASK::SET_MOUNTED_WEAPON_TARGET

0xD392D44633276DE6 ·RVA 0x04BF8D10

Signature

void SET_MOUNTED_WEAPON_TARGET(
    Ped shootingPed,
    Ped targetPed,
    Vehicle targetVehicle,
    Vector3 coords
);

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

Parameters 4

#TypeNameNotes
0PedshootingPed –
1PedtargetPed –
2VehicletargetVehicle –
3Vector3coords –

Returns

void Nothing.

Notes

  • Names from GTA V; types from the game code, which differs from GTA V's signature:
  • x, y and z in GTA V are one Vector3 in GTA VI.
  • taskMode, in GTA V's signature, is not passed in GTA VI.
  • ignoreTargetVehDeadCheck, in GTA V's signature, is not passed in GTA VI.

Call it

// TASK::SET_MOUNTED_WEAPON_TARGET
invoke<Void>(0xD392D44633276DE6, shootingPed, targetPed, targetVehicle, coords);

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.