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

mrft_multirace:IsRegistered()#

ตรวจสอบว่าผู้เล่นลงทะเบียนเข้าร่วมกิจกรรมอยู่หรือไม่

ตัวอย่าง#

local result = exports.mrft_multirace:IsRegistered()
if result then
   -- ผู้เล่นลงทะเบียน Event อยู่
end

mrft_multirace:IsPlaying()#

ตรวจสอบว่าผู้เล่นอยู่ใน Lobby หรือกำลังแข่งอยู่หรือไม่

ตัวอย่าง#

local result = exports.mrft_multirace:IsPlaying()
if result then
   -- ผู้เล่นกำลังเล่นอยู่
end

mrft_multirace:GetEventState()#

ดึงข้อมูลสถานะกิจกรรมโดยรวม

ตัวอย่าง#

local result = exports.mrft_multirace:GetEventState()
if result then
   -- result.active, result.registered, result.raceId, result.raceName, result.minutes, result.seconds, result.players
end
On this page
  • mrftmultirace:IsRegistered()
  • mrftmultirace:IsPlaying()
  • mrftmultirace:GetEventState()