mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Fixed washing money, closes #77
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user