TASK

SET_MOUNTED_WEAPON_TARGET

0xCCD892192C6D2BB9 Jenkins: 0x98713C68

Signature

// TASK
void SET_MOUNTED_WEAPON_TARGET(Ped shootingPed, Ped targetPed, Vehicle targetVehicle, float x, float y, float z, int taskMode, BOOL ignoreTargetVehDeadCheck)

Parameters

Type Name
Ped shootingPed
Ped targetPed
Vehicle targetVehicle
float x
float y
float z
int taskMode
BOOL ignoreTargetVehDeadCheck

Return type void

Build 323

Documentation

Note: Look in decompiled scripts and the times that p1 and p2 aren't 0. They are filled with vars. If you look through out that script what other natives those vars are used in, you can tell p1 is a ped and p2 is a vehicle. Which most likely means if you want the mounted weapon to target a ped set targetVehicle to 0 or vice-versa.

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.