WeaponClientNot in this build

triggerVehicleWeaponReload

_TRIGGER_VEHICLE_WEAPON_RELOAD0x5B1513F27F279A44

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

SignatureJavaScript
triggerVehicleWeaponReload(vehicle: Vehicle, seat: number, ped: Ped): boolean
SignatureLua
triggerVehicleWeaponReload(vehicle: Vehicle, seat: integer, ped: Ped): 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 = triggerVehicleWeaponReload(vehicle, seat, ped);
Lua
local result = triggerVehicleWeaponReload(vehicle, seat, ped)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
seatintnumberinteger
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Weapon WEAPON
In the game
BOOL _TRIGGER_VEHICLE_WEAPON_RELOAD(Vehicle vehicle, int seat, Ped ped)
Hash
0x5B1513F27F279A44
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference