WeaponClient

hasVehicleGotProjectileAttached

HAS_VEHICLE_GOT_PROJECTILE_ATTACHED0x717C8481234E3B88

The GTA V native HAS_VEHICLE_GOT_PROJECTILE_ATTACHED of the WEAPON namespace, as LS:MP client scripts call it: the global function hasVehicleGotProjectileAttached, in JavaScript and in Lua.

SignatureJavaScript
hasVehicleGotProjectileAttached(
  driver: Ped,
  vehicle: Vehicle,
  weaponHash: Hash,
  p3: any
): boolean
SignatureLua
hasVehicleGotProjectileAttached(
  driver: Ped,
  vehicle: Vehicle,
  weaponHash: Hash,
  p3: any
): boolean

Usage

JavaScript
const result = hasVehicleGotProjectileAttached(driver, vehicle, weaponHash, p3);
Lua
local result = hasVehicleGotProjectileAttached(driver, vehicle, weaponHash, p3)

Parameters

ParameterTypeJavaScriptLua
driverPednumberinteger
vehicleVehiclenumberinteger
weaponHashHashnumberinteger
p3Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Fourth Parameter = unsure, almost always -1

Reference

Namespace
Weapon WEAPON
In the game
BOOL HAS_VEHICLE_GOT_PROJECTILE_ATTACHED(Ped driver, Vehicle vehicle, Hash weaponHash, Any p3)
Hash
0x717C8481234E3B88

Open in the interactive natives reference