_REFILL_AMMO_IN_CURRENT_PED_WEAPON
Hash
0x0A2AB7B7ABC055F4Runtime name
RefillAmmoInCurrentPedWeaponNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Any _REFILL_AMMO_IN_CURRENT_PED_WEAPON(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Any
Usage
local retval = RefillAmmoInCurrentPedWeapon(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0A2AB7B7ABC055F4, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = RefillAmmoInCurrentPedWeapon(ped);
// by hash
const retval = Citizen.invokeNative('0x0A2AB7B7ABC055F4', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x0A2AB7B7ABC055F4, ped);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.