Add callback to get society balance in client side

This commit is contained in:
Jim Shield
2025-10-18 23:12:38 +01:00
parent aae2bd5021
commit dffed24fb3

View File

@@ -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