Appearance
LoginSuccess ​
GameserverMessageLoginSuccess · inbound · 80 bytes
Subscribe with Engine.on("LoginSuccess", fn). Print the live usage block with Engine.help("LoginSuccess").
lua
local Engine = require("sdk.engine")
Engine.on("LoginSuccess", function(ev)
print(ev.player_id, ev.beat, ev.earliest)
end)| Name | Kind | Nested |
|---|---|---|
player_id | u32 | — |
beat | u32 | — |
earliest | u64 | — |
current | u64 | — |
fastest | u64 | — |
can_report_bugs | u8 | — |
can_change_pvp | u8 | — |
player_name | str | — |
premium_until | u32 | — |
tournament | u32 | — |