Notify

exports['cT-Interface']:Notify(text, type) 
This is a 'primary' type.
This is a 'info' type.
this is a 'success' type.
This is a 'error' type.
This is a 'warn' type.
A command for test.
local Array  = {
    {text = "This is a primary notification", type = "primary"},
    {text = "This is a info notification", type = "info"},
    {text = "This is a success notification", type = "success"},
    {text = "This is a error notification", type = "error"},
    {text = "This is a warn notification", type = "warn"},
}

RegisterCommand('TestNotify', function() 
    for i, v in pairs(Array) do
        exports['cT-Interface']:Notify(v.text, v.type)
    end
end)

Última actualización