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
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | shootingPed |
– |
| 1 | Ped | targetPed |
– |
| 2 | Vehicle | targetVehicle |
– |
| 3 | Vector3 | coords |
– |
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);// TASK::SET_MOUNTED_WEAPON_TARGET
Function.Call((Hash)0xD392D44633276DE6, shootingPed, targetPed, targetVehicle, coords);-- TASK::SET_MOUNTED_WEAPON_TARGET
Citizen.InvokeNative(0xD392D44633276DE6, shootingPed, targetPed, targetVehicle, coords)// TASK::SET_MOUNTED_WEAPON_TARGET
Citizen.invokeNative("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.