Fixed washing money, closes #77

This commit is contained in:
ElPumpo
2019-04-22 12:08:10 +02:00
parent b3e7209f01
commit 1729bc5b48
+1 -1
View File
@@ -112,7 +112,7 @@ AddEventHandler('esx_society:washMoney', function(society, amount)
local account = xPlayer.getAccount('black_money')
amount = ESX.Math.Round(tonumber(amount))
if xPlayer.job.name ~= society.name then
if xPlayer.job.name ~= society then
print(('esx_society: %s attempted to call washMoney!'):format(xPlayer.identifier))
return
end