From b9974d23e0bede4698def36e6d90ca42360950c4 Mon Sep 17 00:00:00 2001 From: SMX144 <137075524+SMX144@users.noreply.github.com> Date: Thu, 7 Dec 2023 21:54:19 +0100 Subject: [PATCH] Fix depot --- server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')