♻️Exports

CreateHelp

---@param key = The button to you need to press. Like (E)
---@param text = The text to you need to import.

exports["origen_notify"]:CreateHelp(key, text)

RemoveHelp

exports["origen_notify"]:RemoveHelp()

ShowNotification (Client)

---@param text = All notifycation text
---@param type = info, error, success, warning, business
---@param time = Time in miliseconds

exports["origen_notify"]:ShowNotification(text, type, time)

ShowNotification (Server)

---@param source server
---@param text = All notifycation text
---@param type = info, error, success, warning, business
---@param time = Time in miliseconds

exports["origen_notify"]:ShowNotification(source, text, type, time)
Example to use the Exports correctly
local helpId = nil

function Notify(text, type, length)
    exports["origen_notify"]:ShowNotification(text, type, length)
end

function DrawText(text, key)
    if helpId then
        return
    end
    helpId = exports["origen_notify"]:CreateHelp(key, text)
end

function HideText()
    if not helpId then
        return
    end
    exports["origen_notify"]:RemoveHelp(helpId)
    helpId = nil
end

Last updated