hasWeaponReloadingInVehicle
_HAS_WEAPON_RELOADING_IN_VEHICLE0x8062F07153F4446FThe GTA V native _HAS_WEAPON_RELOADING_IN_VEHICLE of the WEAPON namespace, as LS:MP client scripts call it: the global function hasWeaponReloadingInVehicle, in JavaScript and in Lua.
hasWeaponReloadingInVehicle(vehicle: Vehicle, seat: number): booleanhasWeaponReloadingInVehicle(vehicle: Vehicle, seat: integer): boolean⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
const result = hasWeaponReloadingInVehicle(vehicle, seat);Lua
local result = hasWeaponReloadingInVehicle(vehicle, seat)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
seat | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Weapon WEAPON
- In the game
BOOL _HAS_WEAPON_RELOADING_IN_VEHICLE(Vehicle vehicle, int seat)- Hash
0x8062F07153F4446F- Introduced
- Game build 3407 legacy numbering