Skip to content

Commit

Permalink
Merge pull request #323 from Sanriku-Gaming/sanriku
Browse files Browse the repository at this point in the history
🐛 fix depotprice variable (number not table)
  • Loading branch information
GhzGarage authored Dec 31, 2023
2 parents 1ef9ac1 + 4768520 commit 157356e
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 157356e

Please sign in to comment.