Native referenceRedM

GET_PED_AMMO_TYPE_FROM_WEAPON

0x7FEAD38B326B9F74 WEAPON
FUNCTION SIGNATURE
Hash GET_PED_AMMO_TYPE_FROM_WEAPON(Ped ped, Hash weaponHash);
Property Value
Native Name GET_PED_AMMO_TYPE_FROM_WEAPON
Hash 0x7FEAD38B326B9F74
Return Type Hash
Build 1207
Parameters ped (Ped), weaponHash (Hash)

Description: ``` Returns the current ammo type of the specified ped's specified weapon.

MkII magazines will change the return value, like Pistol MkII returning AMMO_PISTOL without any components and returning AMMO_PISTOL_TRACER after Tracer Rounds component is attached.

Use 0xF489B44DD5AF4BD9 if you always want AMMO_PISTOL.


### Usage

**Lua (Direct):**
```lua
local result = GetPedAmmoTypeFromWeapon(ped, weaponHash)

Lua (Hash):

local result = Citizen.InvokeNative(0x7FEAD38B326B9F74, ped, weaponHash)
Back to WEAPON