Skip to content

Commit

Permalink
Merge pull request #12 from Justus-Braun/main
Browse files Browse the repository at this point in the history
Fix(callbacks.lua): Error in the function parameters
  • Loading branch information
SilverGoLt authored Sep 20, 2023
2 parents 8c95156 + 8bdbc19 commit 3de710d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/callbacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ end)

ESX.RegisterServerCallback('h-vshop:buyCar', function (source, cb, data)
if source ~= nil and source ~= -1 then
local result = shop.purchaseCar(source, data.model, data.model)
local result = shop.purchaseCar(source, data.model, data.plate)

if Config.Debug then
print(string.format('[Player] %s purchased a %s', GetPlayerName(source), data.model))
Expand Down Expand Up @@ -148,4 +148,4 @@ if Debug then
RegisterCommand('resetPlayerBucket', function (source)
SetPlayerRoutingBucket(source, 0)
end, false)
end
end

0 comments on commit 3de710d

Please sign in to comment.