# jg-mechanic

jg-mechanic/config/config.lua

```lua
Config.DrawText = "reaver_notify"
```

jg-mechanic/framework/cl-functions

{% code title="" %}

```lua
function Framework.Client.Notify(msg, type, time)
  type = type or "success"
  time = time or 5000
  
  if (Config.Notifications == "auto" and GetResourceState("ox_lib") == "started") or Config.Notifications == "ox_lib" then
    exports["ox_lib"]:notify({
      title = "Mechanic",
      description = msg,
      type = type
    })
  elseif (Config.Notifications == "auto" and GetResourceState("okokNotify") == "started") or Config.Notifications == "okokNotify" then
    exports["okokNotify"]:Alert("Mechanic", msg, time, type)
  elseif (Config.Notifications == "auto" and GetResourceState("ps-ui") == "started") or Config.Notifications == "ps-ui" then
    exports["ps-ui"]:Notify(msg, type, time)
  elseif (Config.Notifications == "auto" and GetResourceState("reaver_notify") == "started") or Config.Notifications == "reaver_notify" then
    exports['reaver_notify']:reaver_notify_showNotification(msg, type, time)
  elseif (Config.Notifications == "auto" and GetResourceState("nox_notify") == "started") or Config.Notifications == "nox_notify" then
    TriggerEvent("nox_notify:showClientNotify", "Mechanic", msg, type, time)
  else
    if Config.Framework == "QBCore" then
      return QBCore.Functions.Notify(msg, type, time)
    elseif Config.Framework == "Qbox" then
      exports.qbx_core:Notify(msg, type, time)
    elseif Config.Framework == "ESX" then
      return ESX.ShowNotification(msg, type)
    end
  end
end
```

{% endcode %}
