Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!
TriggerEvent("bln_notify:send", options)
-- OR
TriggerEvent("bln_notify:send", options, template)
TriggerEvent("bln_notify:send", {
title = "~#ffcc00~Hello!~e~",
description = "This is a ~red~basic~e~ notification with ~img:info~ icon.",
icon = "generic_list",
placement = "middle-right"
})
-- With Template
TriggerEvent("bln_notify:send", {
description = "This is a success template notification.",
placement = "middle-right"
}, "SUCCESS")
TriggerEvent("bln_notify:send", {
title = "~#ffcc00~Advanced Example~e~",
description = "Press ~key:E~ to accept or ~key:F6~ to decline",
icon = "warning",
placement = "middle-left",
duration = 10000,
progress = {
enabled = true,
type = 'circle', -- or 'bar'
color = '#ffcc00'
},
keyActions = {
['E'] = "accept", -- action name used when listen
['F6'] = "decline"
}
})
Seçenek | Tanım | Varsayılan | Gerekli/İsteğe bağlı |
|---|---|---|---|
Atama | Bildirimin konumu | "sağ üst" | İsteğe bağlı |
Başlık | Bildirimin başlığı | "Bildiri" | Gerekli |
Tanım | Bildirim için açıklama metni | hükümsüz | İsteğe bağlı |
Süre | Otomatik kaldırmadan önceki milisaniye cinsinden süre | 5000 | İsteğe bağlı |
Simge | Simge adı veya URL | hükümsüz | İsteğe bağlı |
Arka planı kullan | Arka plan resminin kullanılıp kullanılmayacağı | doğru | İsteğe bağlı |
İçerik Hizalama | İçerik hizalaması | "başlangıç" | İsteğe bağlı |
RTL'dir | Sağdan sola metin yönü | YANLIŞ | İsteğe bağlı |
İlerlemek | İlerleme göstergesi seçenekleri | hükümsüz | İsteğe bağlı |
AnahtarEylemler | Anahtar bağlama eylemleri | hükümsüz | İsteğe bağlı |
Özel Ses | Özel bildirim sesi | Varsayılan sesler | İsteğe bağlı |
-- Send notification with key actions
TriggerEvent("bln_notify:send", {
title = "Interaction Available",
description = "Press ~key:E~ to interact or ~key:F6~ to cancel",
duration = 10000,
keyActions = {
-- ['key_name'] = 'action_name'
['E'] = "accept", -- 'accept' is the action name that will be triggered
['F6'] = "decline" -- 'decline' is the action name
}
})
-- Listen for key press events in your script
RegisterNetEvent("bln_notify:keyPressed")
AddEventHandler("bln_notify:keyPressed", function(action)
if action == "accept" then
print("accept key was pressed!")
-- Do your accept logic here
elseif action == "decline" then
print("decline key was pressed!")
-- Do your decline logic here
end
end)
progress = {
enabled = true, -- Enable/disable progress indicator
type = 'bar', -- 'bar' or 'circle with countdown'
color = '#ffcc00' -- Custom color for progress
}
