Update deliveries.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-09-25 11:46:40 -07:00
1 parent df7804c2de
commit 5a392fe0fe
1 file changed
+4 -2
+4 -2
View File
@@ -7,7 +7,9 @@ lib.callback.register('md-drugs:server:getDealers', function(data)
local loc = json.encode({x = 899.98, y = -2603.24, z = 6.11, h = 176.12 }) local loc = json.encode({x = 899.98, y = -2603.24, z = 6.11, h = 176.12 })
if not check[1] then if not check[1] then
MySQL.insert('INSERT INTO dealers SET name = ?, coords = ?, time = ?, createdby = ?', {'MD', loc, 'any', 'code Newb'}) MySQL.insert('INSERT INTO dealers SET name = ?, coords = ?, time = ?, createdby = ?', {'MD', loc, 'any', 'code Newb'})
return false Wait(2000)
local check2 = MySQL.query.await('SELECT * FROM dealers', {})
return check2
else else
return check return check
end end
@@ -120,4 +122,4 @@ RegisterServerEvent("md-drugs:server:Dealershop", function(amount, value, item,
TriggerClientEvent('QBCore:Notify', source, "Can't give item!", "error") TriggerClientEvent('QBCore:Notify', source, "Can't give item!", "error")
end end
end) end)