Config.CustomShowNotification = {}
Config.CustomShowNotification.enable = true -- เปิดการใช้งาน custom show notification (true)
---@param message string ข้อความ
---@param notifyType string ชนิดของข้อความ
---@param length number ระยะเวลาของข้อความ
---@param title string หัวข้อของข้อความ
---@param position string ตำแหน่งของข้อความ
---@param imageExt string นามสกุลของรูปภาพ
---@param rawHtmlOptions? {title:boolean, description:boolean} ตัวเลือกของ HTML
Config.CustomShowNotification.notify = function(message, notifyType, length, title, position, imageExt, rawHtmlOptions)
---@comments ใช้แจ้งเตือนจาก AFU.Notify
pcall(exports['AFU.Notify'].add, exports['AFU.Notify'], { -- ใช้แจ้งเตือนจาก AFU.Notify
image = imageExt,
position = position,
type = notifyType,
title = title,
description = message,
time = length,
rawHtml = rawHtmlOptions
})
end