forked from Simnation/Main
edit
This commit is contained in:
parent
be02d05ba8
commit
fc7ea910e9
35 changed files with 11992 additions and 1 deletions
26
resources/[tools]/mt_lib/modules/interface/textUI/client.lua
Normal file
26
resources/[tools]/mt_lib/modules/interface/textUI/client.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
---@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)
|
Loading…
Add table
Add a link
Reference in a new issue