vms_barber
vms_barber/config/config.client.lua
CL.Notification = function(message, time, type)
if type == "success" then
if GetResourceState("vms_notify") == 'started' then
exports['reaver_notify']:reaver_notify_showNotification(message, "success", time)
else
exports['reaver_notify']:reaver_notify_showNotification(message, "success", time)
end
elseif type == "error" then
if GetResourceState("vms_notify") == 'started' then
exports['reaver_notify']:reaver_notify_showNotification(message, "error", time)
else
exports['reaver_notify']:reaver_notify_showNotification(message, "error", time)
end
elseif type == "info" then
if GetResourceState("vms_notify") == 'started' then
exports['reaver_notify']:reaver_notify_showNotification(message, "info", time)
else
exports['reaver_notify']:reaver_notify_showNotification(message, "primary", time)
end
end
end
CL.TextUI = {
Enabled = false,
Open = function(message)
if GetResourceState("reaver_notify") == 'started' then
exports['reaver_notify']:DrawText('[E] '..message)
elseif GetResourceState("okokTextUI") == 'started' then
exports['okokTextUI']:Open('[E] '..message, 'darkgreen', 'right')
else
if Config.Core == "ESX" then
ESX.TextUI(message)
else
exports['reaver_notify']:DrawText('[E] '..message)
end
end
end,
Close = function()
if GetResourceState("reaver_notify") == 'started' then
exports['reaver_notify']:HideText()
elseif GetResourceState("okokTextUI") == 'started' then
exports['okokTextUI']:Close()
else
if Config.Core == "ESX" then
ESX.HideUI()
exports['reaver_notify']:HideText()
else
exports['reaver_notify']:HideText()
end
end
end
}
Última actualización