Copy -- show up the textui
exports.lvs_lib: showTextUI (text, key)
-- update the text and key on the visible textui
exports.lvs_lib: updateTextUI (text, key)
-- show up the text on the screen
exports.lvs_lib: pressedTextUI ()
-- the the textui
exports.lvs_lib: hideTextUI ()
Copy local function drawText ( text , position )
exports.lvs_lib: showTextUI (text)
end
local function changeText ( text , position )
exports.lvs_lib: updateTextUI (text)
end
local function keyPressed ()
exports.lvs_lib: pressedTextUI ()
end
local function hideText ()
exports.lvs_lib: hideTextUI ()
end
RegisterNetEvent ( 'qb-core:client:DrawText' , function ( text , position )
drawText (text, position)
end )
RegisterNetEvent ( 'qb-core:client:ChangeText' , function ( text , position )
changeText (text, position)
end )
RegisterNetEvent ( 'qb-core:client:HideText' , function ()
hideText ()
end )
RegisterNetEvent ( 'qb-core:client:KeyPressed' , function ()
keyPressed ()
end )
exports ( 'DrawText' , drawText)
exports ( 'ChangeText' , changeText)
exports ( 'HideText' , hideText)
exports ( 'KeyPressed' , keyPressed)