ตรวจสอบว่าผู้เล่นลงทะเบียนเข้าร่วมกิจกรรมอยู่หรือไม่
local result = exports.mrft_multirace:IsRegistered()
if result then
-- ผู้เล่นลงทะเบียน Event อยู่
end
ตรวจสอบว่าผู้เล่นอยู่ใน Lobby หรือกำลังแข่งอยู่หรือไม่
local result = exports.mrft_multirace:IsPlaying()
if result then
-- ผู้เล่นกำลังเล่นอยู่
end
ดึงข้อมูลสถานะกิจกรรมโดยรวม
local result = exports.mrft_multirace:GetEventState()
if result then
-- result.active, result.registered, result.raceId, result.raceName, result.minutes, result.seconds, result.players
end