1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/mt_lib/modules/interface/textUI/client.lua
2025-06-25 00:04:15 +02:00

26 lines
No EOL
562 B
Lua

---@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)