Update main.lua

This commit is contained in:
Benzo
2022-07-19 23:00:44 +02:00
committed by GitHub
parent 939d79dfd6
commit cc7e5d384d
+1 -1
View File
@@ -23,7 +23,7 @@ AddEventHandler('esx_banking:deposit', function(amount)
end
end)
ESX.RegisterServerCallback("esx_banking:BenzoFP", function(source, cb)
ESX.RegisterServerCallback("esx_banking:gethistory", function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)
local identifier = xPlayer.getIdentifier()
local history = MySQL.Sync.prepare('SELECT * FROM banking WHERE identifier = ?', {identifier})