Native referenceRedM

GET_BEST_PED_WEAPON

0x8483E98E8B888AE2 WEAPON
FUNCTION SIGNATURE
Hash GET_BEST_PED_WEAPON(Ped ped, BOOL ignoreAmmoCount);
Property Value
Native Name GET_BEST_PED_WEAPON
Hash 0x8483E98E8B888AE2
Return Type Hash
Build 1207
Parameters ped (Ped), ignoreAmmoCount (BOOL)

Parameters

  • ped (Ped)
  • ignoreAmmoCount (BOOL) — If set to true, the best weapon can have no ammo, otherwise, it will return the best weapon with ammo. Default value is 0.

Usage

Lua (Direct):

local result = GetBestPedWeapon(ped, ignoreAmmoCount)

Lua (Hash):

local result = Citizen.InvokeNative(0x8483E98E8B888AE2, ped, ignoreAmmoCount)
Back to WEAPON