Skip to content

Commit

Permalink
Fix depot
Browse files Browse the repository at this point in the history
  • Loading branch information
SMX144 authored Dec 7, 2023
1 parent 1ef9ac1 commit b9974d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b9974d2

Please sign in to comment.