refillAmmoInstantly
REFILL_AMMO_INSTANTLY0x8C0D57EA686FAD87The GTA V native REFILL_AMMO_INSTANTLY of the WEAPON namespace, as LS:MP client scripts call it: the global function refillAmmoInstantly, in JavaScript and in Lua.
refillAmmoInstantly(ped: Ped): booleanrefillAmmoInstantly(ped: Ped): booleanUsage
JavaScript
const result = refillAmmoInstantly(ped);Lua
local result = refillAmmoInstantly(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Weapon WEAPON
- In the game
BOOL REFILL_AMMO_INSTANTLY(Ped ped)- Hash
0x8C0D57EA686FAD87- Formerly
_PED_SKIP_NEXT_RELOADING