mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-22 19:48:33 +00:00
Add callback to get society balance in client side
This commit is contained in:
1 parent
aae2bd5021
commit
dffed24fb3
1 file changed
+10
@@ -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
|
||||
Reference in new issue
Block a user