RoomService v2.3.1
Loading...
Searching...
No Matches
RoomService.SetLobbyName Class Reference

Lua function to set the lobby name.

Member Function Documentation

◆ Implementation()

void RoomService.SetLobbyName.Implementation ( string name)
inlineprivate

Usage:

RoomService.SetLobbyName("Cozy Cart Racing");
Lua function to set the lobby name.
Definition RoomServiceLuaFunctions.cs:537
Definition MyPluginInfo.cs:2
Parameters
nameThe new name for the lobby.

Source Code

552 {
553 if (!RoomServiceUtils.IsOnlineHost())
554 {
555 return;
556 }
557
558 if (string.IsNullOrEmpty(name.Trim()))
559 {
560 return;
561 }
562
563 ZeepkistLobby currentLobby = ZeepkistNetwork.CurrentLobby;
564 if (currentLobby != null)
565 {
566 currentLobby.UpdateName(name);
567 }
568 }