Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fix(server): society getter and modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Dec 6, 2022
1 parent 178340c commit 55dd61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function Jobmoney(job,xPlayer)
value = exports.renzu_jobs:JobMoney(job).money
else
if Config.framework == 'ESX' then
TriggerEvent('esx_addonaccount:getSharedAccount', job, function(account)
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_'..job, function(account)
value = account.money
end)
else
Expand All @@ -112,7 +112,7 @@ end

Society = function(job,amount,method)
if Config.framework == 'ESX' then
TriggerEvent('esx_addonaccount:getSharedAccount', job, function(account)
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_'..job, function(account)
if account and method == 'remove' then
account.removeMoney(amount)
elseif account then
Expand Down

0 comments on commit 55dd61f

Please sign in to comment.