• สินค้าทั้งหมด
  • Studio
  • คู่มือการใช้งาน
  • Client Exports
  • Server Exports
Docs > Multi Race > Server Exports

mrft_multirace:GetPlayerLobbyID()#

ดึง ID Lobby ปัจจุบันของผู้เล่น

Parameters#

  • playerId (number): ID ผู้เล่น

ตัวอย่าง#

local lobbyId = exports.mrft_multirace:GetPlayerLobbyID(1)
if lobbyId then
   -- Output: 40001
end

mrft_multirace:GetLobbyFromID()#

ดึงข้อมูลและฟังก์ชันของ Lobby จาก ID Lobby

Parameters#

  • lobbyId (number): ID Lobby

ตัวอย่าง#

local lobby = exports.mrft_multirace:GetLobbyFromID(40001)
if lobby then
   print(#lobby.participants)
end
On this page
  • mrftmultirace:GetPlayerLobbyID()
  • mrftmultirace:GetLobbyFromID()