structura foldere
mutat kq- folders in un singur folder [kq]
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
if Config.TextUI ~= "HelpNotification" then
|
||||
return
|
||||
end
|
||||
|
||||
function TextShow(msg)
|
||||
SetTextComponentFormat("STRING")
|
||||
AddTextComponentString(msg)
|
||||
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
|
||||
end
|
||||
|
||||
function TextClose()
|
||||
return
|
||||
end
|
||||
@@ -0,0 +1,21 @@
|
||||
-- Function to draw 3D text based on the chosen method
|
||||
local isTextVisible = true
|
||||
|
||||
-- Function to draw 3D text based on the chosen method
|
||||
function Draw3DText(x, y, z, text)
|
||||
if isTextVisible then
|
||||
if Config.ReplaceDraw3D then
|
||||
if Config.TextUI == 'okokTextUI' then
|
||||
print("DEBUG: okokTextUI is currently bugged and will not display correctly.")
|
||||
end
|
||||
TextShow(text) -- Use the ox_lib function
|
||||
else
|
||||
DrawText3D(x, y, z, text)
|
||||
end
|
||||
isTextVisible = false
|
||||
end
|
||||
end
|
||||
|
||||
function TextClose()
|
||||
return
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
if Config.TextUI ~= "esx_textui" then
|
||||
return
|
||||
end
|
||||
|
||||
function TextShow(msg, x, y, z)
|
||||
exports["esx_textui"]:TextUI(msg)
|
||||
end
|
||||
|
||||
function TextClose()
|
||||
exports["esx_textui"]:HideUI()
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
if Config.TextUI ~= "okokTextUI" then
|
||||
return
|
||||
end
|
||||
|
||||
function TextShow(msg)
|
||||
exports['okokTextUI']:Open(msg, 'lightblue', 'right')
|
||||
end
|
||||
|
||||
function TextClose()
|
||||
exports['okokTextUI']:Close()
|
||||
end
|
||||
@@ -0,0 +1,46 @@
|
||||
local lastTextDisplayed = nil
|
||||
|
||||
if Config.TextUI ~= "ox_lib" then
|
||||
return
|
||||
end
|
||||
|
||||
function TextShow(msg)
|
||||
if lib.isTextUIOpen() then
|
||||
return
|
||||
else
|
||||
local icon = Config.CustomIcon or ''
|
||||
|
||||
if Config.CustomDesignTextUI then
|
||||
lib.showTextUI(msg, {
|
||||
icon = icon,
|
||||
style = {
|
||||
borderRadius = 0,
|
||||
backgroundColor = '#141517',
|
||||
color = '#d6d6d6'
|
||||
}
|
||||
})
|
||||
else
|
||||
lib.showTextUI(msg, { icon = icon })
|
||||
end
|
||||
|
||||
lastTextDisplayed = msg
|
||||
end
|
||||
end
|
||||
|
||||
function TextClose(textToClose)
|
||||
local isOpen, currentText = lib.isTextUIOpen()
|
||||
|
||||
if isOpen then
|
||||
if currentText == textToClose or textToClose == true then
|
||||
lib.hideTextUI()
|
||||
lastTextDisplayed = nil
|
||||
return true
|
||||
elseif lastTextDisplayed and currentText == lastTextDisplayed then
|
||||
lib.hideTextUI()
|
||||
lastTextDisplayed = nil
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
if Config.TextUI ~= "qb" then
|
||||
return
|
||||
end
|
||||
|
||||
function TextShow(msg)
|
||||
exports['qb-core']:DrawText(msg, 'left')
|
||||
end
|
||||
|
||||
function TextClose()
|
||||
exports['qb-core']:HideText()
|
||||
end
|
||||
Reference in New Issue
Block a user