WeaponClient

makePedReload

MAKE_PED_RELOAD0x20AE33F3AC9C0033

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

SignatureJavaScript
makePedReload(ped: Ped): boolean
SignatureLua
makePedReload(ped: Ped): boolean

Usage

JavaScript
const result = makePedReload(ped);
Lua
local result = makePedReload(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

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.

Forces a ped to reload only if they are able to; if they have a full magazine, they will not reload.

Reference

Namespace
Weapon WEAPON
In the game
BOOL MAKE_PED_RELOAD(Ped ped)
Hash
0x20AE33F3AC9C0033

Open in the interactive natives reference