Installation
Config.Framework = 'ESX' --'ESX', 'QB' Config.Inventory = 'ox' -- 'ox', 'esx', 'qb', 'qs', 'mf' Config.Target = 'ox_target' -- 'ox_target', 'qb-target'--Notify Event (You can add your own notification event here or use one of the provided examples) RegisterNetEvent("t3_lib:notify", function(data) local n = { msg = data.msg, title = data.title or "Notification", duration = data.duration or 5000, type = data.type or "info", } ESX.ShowNotification(n.msg, n.type, n.duration) --QBCore.Functions.Notify(n.msg, (n.type == "info" and "primary" or n.type), n.duration) --exports['okokNotify']:Alert(n.title, string.gsub(n.msg, '(~[rbgypcmuonshw]~)', ''), n.duration, n.type) --exports['mythic_notify']:DoCustomHudText(n.type, string.gsub(n.msg, '(~[rbgypcmuonshw]~)', ''), n.duration) end)
Last updated