feat(es_extended/common/functions.lua): add option for get weapons by hash

This commit is contained in:
Csoki
2023-01-29 11:22:52 +01:00
parent 8f360695b3
commit 6ee4be79dd
+2 -2
View File
@@ -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)