Native referenceRedM

GET_AMMO_IN_PED_WEAPON

0x015A522136D7F951 WEAPON
FUNCTION SIGNATURE
int GET_AMMO_IN_PED_WEAPON(Ped ped, Hash weaponhash);
Property Value
Native Name GET_AMMO_IN_PED_WEAPON
Hash 0x015A522136D7F951
Return Type int
Build 1207
Parameters ped (Ped), weaponhash (Hash)

Description: ``` WEAPON::GET_AMMO_IN_PED_WEAPON(PLAYER::PLAYER_PED_ID(), a_0)
From decompiled scripts
Returns total ammo in weapon
GTALua Example :
natives.WEAPON.GET_AMMO_IN_PED_WEAPON(plyPed, WeaponHash)


### Usage

**Lua (Direct):**
```lua
local result = GetAmmoInPedWeapon(ped, weaponhash)

Lua (Hash):

local result = Citizen.InvokeNative(0x015A522136D7F951, ped, weaponhash)
Back to WEAPON