Merge branch 'master' of https://git.evolution-state-life.de/Evolution-State-Life/Main
This commit is contained in:
commit
b14ec866ff
13 changed files with 9609 additions and 9217 deletions
|
@ -238,12 +238,17 @@ QBCore.Functions.CreateCallback('mh_jobgarage:CallOwnerVehicles', function(sourc
|
|||
local Player = QBCore.Functions.GetPlayer(_source)
|
||||
local pedid = Player.PlayerData.citizenid
|
||||
local veh = {}
|
||||
MySQL.query("SELECT * FROM player_vehicles", {}, function(rs)
|
||||
MySQL.query("SELECT * FROM player_vehicles where citizenid = ?", {pedid}, function(rs)
|
||||
if rs ~= nil and rs[1] ~= nil then
|
||||
for k, v in pairs(rs) do
|
||||
local keycount = MySQL.query("SELECT * FROM vehicle_keys WHERE owner = ? AND plate = ?", {pedid, v.plate})
|
||||
print("Key Count: "..json.encode(keycount))
|
||||
table.insert(veh, {plate = v.plate, keys = keycount[1].count})
|
||||
MySQL.query("SELECT count FROM vehicle_keys WHERE owner = ? AND plate = ?", {pedid, v.plate}, function(keycount)
|
||||
print(json.encode(keycount))
|
||||
if keycount and keycount[1] then
|
||||
table.insert(veh, {plate = v.plate, keys = keycount[1].count})
|
||||
else
|
||||
table.insert(veh, {plate = v.plate, keys = 0})
|
||||
end
|
||||
end)
|
||||
end
|
||||
cb(veh)
|
||||
else
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"Zum Durstigen Dackel":200,"kayas":0,"odin":0,"ammu":1000,"dackel":0,"ambulance":0,"police":100,"cinema":0}
|
||||
{"odin":0,"police":100,"Zum Durstigen Dackel":200,"dackel":0,"cinema":0,"ammu":1000,"ambulance":0,"kayas":0}
|
|
@ -1,13 +1,23 @@
|
|||
[
|
||||
{
|
||||
"score": 460,
|
||||
"timestamp": "02.06.2025 - 16:15",
|
||||
"name": "kim",
|
||||
"timestamp": "02.06.2025 - 16:15"
|
||||
"score": 460
|
||||
},
|
||||
{
|
||||
"score": 330,
|
||||
"timestamp": "24.06.2025 - 04:09",
|
||||
"name": "Unbekannt",
|
||||
"timestamp": "23.05.2025 - 08:25"
|
||||
"score": 370
|
||||
},
|
||||
{
|
||||
"timestamp": "24.06.2025 - 04:10",
|
||||
"name": "Unbekannt",
|
||||
"score": 360
|
||||
},
|
||||
{
|
||||
"timestamp": "23.05.2025 - 08:25",
|
||||
"name": "Unbekannt",
|
||||
"score": 330
|
||||
},
|
||||
{
|
||||
"score": 210,
|
||||
|
@ -18,19 +28,19 @@
|
|||
"name": "kim"
|
||||
},
|
||||
{
|
||||
"score": 130,
|
||||
"timestamp": "23.05.2025 - 08:40",
|
||||
"name": "kim",
|
||||
"timestamp": "23.05.2025 - 08:40"
|
||||
"score": 130
|
||||
},
|
||||
{
|
||||
"score": 110,
|
||||
"timestamp": "23.05.2025 - 08:37",
|
||||
"name": "kim",
|
||||
"timestamp": "23.05.2025 - 08:37"
|
||||
"score": 110
|
||||
},
|
||||
{
|
||||
"score": 90,
|
||||
"timestamp": "23.05.2025 - 08:37",
|
||||
"name": "kim",
|
||||
"timestamp": "23.05.2025 - 08:37"
|
||||
"score": 90
|
||||
},
|
||||
{
|
||||
"score": 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue