mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +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]
|
||||
end
|
||||
|
||||
function ESX.GetWeaponList()
|
||||
return Config.Weapons
|
||||
function ESX.GetWeaponList(byHash)
|
||||
return byHash and weaponsByHash or Config.Weapons
|
||||
end
|
||||
|
||||
function ESX.GetWeaponLabel(weaponName)
|
||||
|
||||
Reference in New Issue
Block a user