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

mrft_fishing:IsPlayerFishing()#

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

Parameters#

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

ตัวอย่าง#

local retval = mrft_fishing:IsPlayerFishing(1)
if retval then
   -- ผู้เล่นไอดี 1 กำลังตกปลาอยู่
end

mrft_fishing:ForceStopFishing()#

บังคับให้ผู้เล่นหยุดตกปลา

Parameters#

  • playerId (number): ID ผู้เล่น
  • reason (string): เหตุผลในการบังคับหยุด ไม่จำเป็นต้องส่งค่า

ตัวอย่าง#

local result = mrft_fishing:ForceStopFishing(1, "น่าสงสัย")
if result then
   -- บังคับหยุดตกปลาสำเร็จ
end
On this page
  • mrftfishing:IsPlayerFishing()
  • mrftfishing:ForceStopFishing()