makePedReload
MAKE_PED_RELOAD0x20AE33F3AC9C0033The 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.
makePedReload(ped: Ped): booleanmakePedReload(ped: Ped): booleanUsage
JavaScript
const result = makePedReload(ped);Lua
local result = makePedReload(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
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.
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