From dffed24fb33584b1d9a6cc92f982203d612787c0 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 18 Oct 2025 23:12:38 +0100 Subject: [PATCH] Add callback to get society balance in client side --- shared/societybank.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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