diff --git a/[esx]/esx_textui/TextUI.lua b/[esx]/esx_textui/TextUI.lua index 2cc04528..578c9772 100644 --- a/[esx]/esx_textui/TextUI.lua +++ b/[esx]/esx_textui/TextUI.lua @@ -1,12 +1,12 @@ Debug = ESX.GetConfig().EnableDebug ----@param message any ----@param type string -local function TextUI(message, type) +---@param message string +---@param typ string +local function TextUI(message, typ) SendNUIMessage({ action = 'show', message = message and message or 'ESX-TextUI', - type = type ~= 0 and type or 'info' + type = type(typ) == "string" and typ or 'info' }) end