From b2be63f5f4a0697216365ea56adb3ce822eac79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=20Gerg=C5=91?= <69343477+Rav3n95@users.noreply.github.com> Date: Thu, 24 Nov 2022 22:46:35 +0100 Subject: [PATCH] Fix of the recent fix --- [esx]/esx_textui/TextUI.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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