diff --git a/server/main.lua b/server/main.lua index eafc7a6..0bbc7df 100644 --- a/server/main.lua +++ b/server/main.lua @@ -189,7 +189,7 @@ RegisterNetEvent('qb-garages:server:PayDepotPrice', function(data) local bankBalance = Player.PlayerData.money['bank'] MySQL.scalar('SELECT depotprice FROM player_vehicles WHERE plate = ?', { data.plate }, function(result) if result then - local depotPrice = result[1].depotprice + local depotPrice = result if cashBalance >= depotPrice then Player.Functions.RemoveMoney('cash', depotPrice, 'paid-depot')