Hi I got an error in Policejob
main.lua (51.4 KB)
Are the weapons on your server is as an item?
navigate to: es_extended/shared/functions.lua
and add this code
ESX.GetWeapon = function(weaponName)
weaponName = string.upper(weaponName)
local weapons = ESX.GetWeaponList()
for i=1, #weapons, 1 do
if weapons[i].name == weaponName then
return i, weapons[i]
end
end
end
Also might want to validate that the weapon column and its contents are named appropriately in your DB Table.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.