mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Add callback to get society balance in client side
This commit is contained in:
@@ -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