Skip to content

Ludo: exports, events & commands ​

Generated from the Lua in the release. Descriptions are the comments above each definition. Event names and export names are public contracts: they do not change between versions.

Events ​

  • Client events are triggered on the player: TriggerClientEvent(name, src, ...) from the server, or TriggerEvent(name, ...) on the client.
  • Server events are triggered with TriggerServerEvent(name, ...). The server checks the player, distance and amounts itself; never rely on a client to do it.

Client ​

EventArgumentsDescription
lumo-ludo:client:challengeReceivedfromSrc, fromName, _, label
lumo-ludo:client:challengeTargetdata── Invite a nearby player ──────────────────────────────────────────────────
lumo-ludo:client:closereason
lumo-ludo:client:seatSyncseats
lumo-ludo:client:statestate
lumo-ludo:client:tableGamesmap
lumo-ludo:client:tableslist

Server ​

EventArgumentsDescription
lumo-ludo:server:challengetargetSrc, game
lumo-ludo:server:challengeRespondaccepted, expectedChallenger
lumo-ludo:server:createplayers, tableIndex, game
lumo-ludo:server:createSolobots, tableIndex, game
lumo-ludo:server:deleteTableid
lumo-ludo:server:joinid
lumo-ludo:server:leave
lumo-ludo:server:movetoken
lumo-ludo:server:requestSeatSync
lumo-ludo:server:requestTables── Client sync ──────────────────────────────────────────────────────────────
lumo-ludo:server:rollthrow
lumo-ludo:server:saveTableraw, id── Admin edits ──────────────────────────────────────────────────────────────
lumo-ludo:server:spectateid── Spectate ────────────────────────────────────────────────────────────────
lumo-ludo:server:start

Commands ​

CommandSideDescription
/ludofacegridclientDev: draw grid coordinates on the face (checks the orientation in game).
/ludopropclient/ludoprop: the board 1 m in front of you with a token of each colour on its start square and the die showing 1 in red's yard, and the Snakes & Ladders board beside it with red on square 1 and blue on 100. Again to remove.
/ludoseatzclient/ludoseatz 0.05 (or -0.05): nudge the seated height for this table's chair model live and show the value to paste into Config.Admin.chairModels (sitZ).