- 黄金
- 377.90 黄金
原贴:https://forum.cfx.re/t/free-simple-notifications/5248752

让您的服务器更具吸引力! 简单但外观干净的通知使您的服务器看起来更好、更风格化
用法
Export
Event
参数
下载

让您的服务器更具吸引力! 简单但外观干净的通知使您的服务器看起来更好、更风格化
用法
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")
}
下载