WeaponClientNot in this build

hasWeaponReloadingInVehicle

_HAS_WEAPON_RELOADING_IN_VEHICLE0x8062F07153F4446F

The 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.

SignatureJavaScript
hasWeaponReloadingInVehicle(vehicle: Vehicle, seat: number): boolean
SignatureLua
hasWeaponReloadingInVehicle(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

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
seatintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Weapon WEAPON
In the game
BOOL _HAS_WEAPON_RELOADING_IN_VEHICLE(Vehicle vehicle, int seat)
Hash
0x8062F07153F4446F
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference