1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/mt_lib/modules/interface/textUI/client.lua

26 lines
562 B
Lua
Raw Normal View History

2025-06-25 00:04:15 +02:00
---@param label string
---@param key string
---@param position string
local showTextUI = function(label, key, position)
SendNUIMessage({
action = 'textUI',
data = {
label = label,
key = key,
position = position,
}
})
SendNUIMessage({
action = 'setVisibleTextUI',
data = true
})
end
exports("showTextUI", showTextUI)
local hideTextUI = function()
SendNUIMessage({
action = 'setVisibleTextUI',
data = false
})
end
exports("hideTextUI", hideTextUI)