mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
feat(es_extended/common/functions.lua): add option for get weapons by hash
This commit is contained in:
@@ -39,8 +39,8 @@ function ESX.GetWeaponFromHash(weaponHash)
|
|||||||
return weaponsByHash[weaponHash]
|
return weaponsByHash[weaponHash]
|
||||||
end
|
end
|
||||||
|
|
||||||
function ESX.GetWeaponList()
|
function ESX.GetWeaponList(byHash)
|
||||||
return Config.Weapons
|
return byHash and weaponsByHash or Config.Weapons
|
||||||
end
|
end
|
||||||
|
|
||||||
function ESX.GetWeaponLabel(weaponName)
|
function ESX.GetWeaponLabel(weaponName)
|
||||||
|
|||||||
Reference in New Issue
Block a user