update
made server table for presses, will do same for lab kits
This commit is contained in:
1 parent
6df0983273
commit
c2fddd6144
11 files changed
+85
-173
No files matched your search
@@ -80,9 +80,6 @@ lib.addCommand("newdealer", {
|
||||
if not Player then return end
|
||||
|
||||
local dealerName = args.name
|
||||
local minTime = args.min
|
||||
local maxTime = args.max
|
||||
local time = json.encode({min = minTime, max = maxTime})
|
||||
local pos = json.encode({x = coords.x, y = coords.y, z = coords.z})
|
||||
|
||||
local result = MySQL.scalar.await('SELECT name FROM dealers WHERE name = ?', { dealerName })
|
||||
@@ -91,7 +88,7 @@ lib.addCommand("newdealer", {
|
||||
end
|
||||
|
||||
MySQL.insert('INSERT INTO dealers (name, coords, time, createdby) VALUES (?, ?, ?, ?)', {
|
||||
dealerName, pos, time, Player.PlayerData.citizenid
|
||||
dealerName, pos, 'nil', Player.PlayerData.citizenid
|
||||
}, function()
|
||||
QBConfig.Dealers[dealerName] = {
|
||||
name = dealerName,
|
||||
@@ -101,10 +98,6 @@ lib.addCommand("newdealer", {
|
||||
z = coords.z,
|
||||
h = GetEntityHeading(ped)
|
||||
},
|
||||
time = {
|
||||
min = minTime,
|
||||
max = maxTime
|
||||
},
|
||||
}
|
||||
TriggerClientEvent('md-drugs:client:RefreshDealers', -1, QBConfig.Dealers)
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user