forked from Simnation/Main
26 lines
562 B
Lua
26 lines
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)
|