hasVehicleGotProjectileAttached
HAS_VEHICLE_GOT_PROJECTILE_ATTACHED0x717C8481234E3B88The 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.
hasVehicleGotProjectileAttached(
driver: Ped,
vehicle: Vehicle,
weaponHash: Hash,
p3: any
): booleanhasVehicleGotProjectileAttached(
driver: Ped,
vehicle: Vehicle,
weaponHash: Hash,
p3: any
): booleanUsage
JavaScript
const result = hasVehicleGotProjectileAttached(driver, vehicle, weaponHash, p3);Lua
local result = hasVehicleGotProjectileAttached(driver, vehicle, weaponHash, p3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
driver | Ped | number | integer |
vehicle | Vehicle | number | integer |
weaponHash | Hash | number | integer |
p3 | Any | any | any |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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