mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
@@ -1,21 +1,19 @@
|
|||||||
Debug = ESX.GetConfig().EnableDebug
|
Debug = ESX.GetConfig().EnableDebug
|
||||||
local IsShowing = false
|
local isShowing = false
|
||||||
---@param message string
|
---@param message string
|
||||||
---@param Type string
|
---@param typ string
|
||||||
local function TextUI(message, type)
|
local function TextUI(message, typ)
|
||||||
IsShowing = true
|
isShowing = true
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
action = 'show',
|
action = 'show',
|
||||||
message = message and message or 'ESX-TextUI',
|
message = message and message or 'ESX-TextUI',
|
||||||
type = type == 0 and "info" or type
|
type = type(typ) == "string" and typ or 'info'
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local function HideUI()
|
local function HideUI()
|
||||||
if not IsShowing then
|
if not isShowing then return end
|
||||||
return
|
isShowing = false
|
||||||
end
|
|
||||||
IsShowing = false
|
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
action = 'hide'
|
action = 'hide'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user