diff --git a/[core]/es_extended/common/functions.lua b/[core]/es_extended/common/functions.lua index b3074c8a..f8d65bde 100644 --- a/[core]/es_extended/common/functions.lua +++ b/[core]/es_extended/common/functions.lua @@ -39,8 +39,8 @@ function ESX.GetWeaponFromHash(weaponHash) return weaponsByHash[weaponHash] end -function ESX.GetWeaponList() - return Config.Weapons +function ESX.GetWeaponList(byHash) + return byHash and weaponsByHash or Config.Weapons end function ESX.GetWeaponLabel(weaponName)