WeaponClient

refillAmmoInstantly

REFILL_AMMO_INSTANTLY0x8C0D57EA686FAD87

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Weapon WEAPON
In the game
BOOL REFILL_AMMO_INSTANTLY(Ped ped)
Hash
0x8C0D57EA686FAD87
Formerly
_PED_SKIP_NEXT_RELOADING

Open in the interactive natives reference