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

mrft_fishing:IsFishing()#

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

ตัวอย่าง#

local retval = mrft_fishing:IsFishing()
if retval then
   -- กำลังตกปลาอยู่
end

mrft_fishing:GetCurrentRod()#

ดึงชื่อคันเบ็ดที่ผู้เล่นกำลังใช้งานอยู่

ตัวอย่าง#

local retval = mrft_fishing:GetCurrentRod()
print(retval) -- Output: fishingrod_pro

mrft_fishing:GetRodBoosts()#

ดึงข้อมูลความสามารถเสริมของคันเบ็ด เช่น Luck, Speed และ Control

ตัวอย่าง#

local retval = mrft_fishing:GetRodBoosts()
if retval then
   print(retval.luck, retval.speed, retval.control)
end

mrft_fishing:HasRodPerk()#

ตรวจสอบว่าคันเบ็ดปัจจุบันมี Perk ที่ระบุหรือไม่

Parameters#

  • perk (string): ชื่อ Perk ที่ต้องการตรวจสอบ

ตัวอย่าง#

local retval = mrft_fishing:HasRodPerk("FISH_ANYWHERE")
if retval then
   -- คันเบ็ดมีความสามารถพิเศษ: FISH_ANYWHERE
end

mrft_fishing:IsInFishingZone()#

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

ตัวอย่าง#

local retval = mrft_fishing:IsInFishingZone()
if retval then
   -- ผู้เล่นอยู่ในโซนตกปลา
end

mrft_fishing:GetCurrentZone()#

ดึงข้อมูลโซนตกปลาที่ผู้เล่นอยู่ในขณะนั้น

ตัวอย่าง#

local retval = mrft_fishing:GetCurrentZone()
if retval then
   print(retval.label) -- Output: โซนตกปลาทั่วไป
end

mrft_fishing:CanFishHere()#

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

ตัวอย่าง#

local retval = mrft_fishing:CanFishHere()
if retval then
   -- จุดนี้สามารถตกปลาได้
end

mrft_fishing:IsAutoFishing()#

ตรวจสอบว่าผู้เล่นกำลังใช้ระบบตกปลาอัตโนมัติอยู่หรือไม่

ตัวอย่าง#

local retval = mrft_fishing:IsAutoFishing()
if retval then
   -- ผู้เล่นกำลังตกปลาอัตโนมัติอยู่
end
On this page
  • mrftfishing:IsFishing()
  • mrftfishing:GetCurrentRod()
  • mrftfishing:GetRodBoosts()
  • mrftfishing:HasRodPerk()
  • mrftfishing:IsInFishingZone()
  • mrftfishing:GetCurrentZone()
  • mrftfishing:CanFishHere()
  • mrftfishing:IsAutoFishing()