Shared/notify.lua
We've made it easy for you and edited notify.lua for some of you.
RegisterNetEvent('thug-crafting:client:notify', function(Notify_Text, Notify_Type)
TriggerEvent('esx:showNotification', Notify_Text, Notify_Type, 3000)
end)
Config.Notify_Settings = {
['Info_Type'] = "info",
['Succes_Type'] = "success",
['Error_Type'] = "error",
}
QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('thug-crafting:client:notify', function(Notify_Text, Notify_Type)
QBCore.Functions.Notify(Notify_Text, Notify_Type, 3000)
end)
Config.Notify_Settings = {
['Info_Type'] = "primary",
['Succes_Type'] = "success",
['Error_Type'] = "error",
}
RegisterNetEvent('thug-crafting:client:notify', function(Notify_Text, Notify_Type)
lib.notify({
title = 'Thug Crafting',
description = Notify_Text,
type = Notify_Type
})
end)
Config.Notify_Settings = {
['Info_Type'] = "inform",
['Succes_Type'] = "success",
['Error_Type'] = "error",
}
RegisterNetEvent('thug-crafting:client:notify', function(Notify_Text, Notify_Type)
exports['okokNotify']:Alert('Thug Crafting', Notify_Text, 3000, Notify_Type)
end)
Config.Notify_Settings = {
['Info_Type'] = "info",
['Succes_Type'] = "success",
['Error_Type'] = "error",
}
Last updated