mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Fixed #35
This commit is contained in:
+2
-2
@@ -87,10 +87,10 @@ AddEventHandler('esx_weashop:buyItem', function(weaponName, zone)
|
||||
end)
|
||||
|
||||
function GetPrice(weaponName, zone)
|
||||
local result = MySQL.Sync.fetchAll('SELECT 1 FROM weashops WHERE zone = @zone AND item = @item', {
|
||||
local result = MySQL.Sync.fetchAll('SELECT price FROM weashops WHERE zone = @zone AND item = @item', {
|
||||
['@zone'] = zone,
|
||||
['@item'] = weaponName
|
||||
})
|
||||
|
||||
|
||||
return result[1].price
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user