Main/resources/[inventory]/mr-consumables/open/client/cl_functions.lua

22 lines
688 B
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
function ShowTextUI(text) -- You Can Use This Function To Show Text UI
if CLConfig.UI.TextUI == "gta" then
AddTextEntry("textUIEntry", text)
BeginTextCommandDisplayHelp("textUIEntry")
EndTextCommandDisplayHelp(0, true, true, -1)
elseif CLConfig.UI.TextUI == "ox_lib" then
lib.showTextUI(text)
end
end
function HideTextUI() -- You Can Use This Function To Hide Text UI
if CLConfig.UI.TextUI == "gta" then
ClearAllHelpMessages()
elseif CLConfig.UI.TextUI == "ox_lib" then
lib.hideTextUI()
end
end
function Notify(text, type) -- You Can Put Your Own Notification System Here
Core.Functions.Notify(text, type)
end