Appearance
ResourceBalance ​
GameserverMessageResourceBalance · inbound · 40 bytes
Subscribe with Engine.on("ResourceBalance", fn). Print the live usage block with Engine.help("ResourceBalance").
lua
local Engine = require("sdk.engine")
Engine.on("ResourceBalance", function(ev)
print(ev.type, ev.balance, ev.amount)
end)| Name | Kind | Nested |
|---|---|---|
type | i32 | — |
balance | u64 | — |
amount | u32 | — |