example
example

资源 简单的通知

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
原贴:https://forum.cfx.re/t/free-simple-notifications/5248752
1720627144612.png
让您的服务器更具吸引力! 简单但外观干净的通知使您的服务器看起来更好、更风格化

用法

Export
lua:
exports["peuren_notify"]:Notify({
    title = "Title",
    description = "Description",
    severity = "info",
    life = 5000,
    position = "topright"
})

Event
lua:
--SERVER-SIDE:
TriggerClientEvent("peuren_notify", source, {
    title = "Title",
    description = "Description",
    severity = "info",
    life = 5000,
    position = "topright"
})

--CLIENT-SIDE:
TriggerEvent("peuren_notify", {
    title = "Title",
    description = "Description",
    severity = "info",
    life = 5000,
    position = "topright"
})

参数
lua:
{
    title = title of the notification,
    description = description of the notification,
    severity = severity of the notification ("error" | "secondary" | "info" | "success" | "warn" | "contrast"),
    life = duration of the notification in milliseconds,
    position = position of the notification ("center" | "topleft" | "topcenter" | "topright" | "bottomleft" | "bottomcenter" | "bottomright")
}

下载
 
顶部