diff --git a/shared/societybank.lua b/shared/societybank.lua index 3c8e5e8..f2cd2fc 100644 --- a/shared/societybank.lua +++ b/shared/societybank.lua @@ -263,4 +263,14 @@ function fundSociety(society, amount) end print("^1Error^7: ^3FundSociety^7: ^2No supported banking script found") +end + +if isServer() then + createCallback(getScript()..":server:getAccount", function(source, society) + if society then + local getMoney = getSocietyAccount(society) + return getMoney + end + return 0 + end) end \ No newline at end of file