input compat fixes

This commit is contained in:
Jim Shield
2025-03-11 22:41:13 +00:00
committed by GitHub
parent 83ba74bc12
commit 2572f86030
7 changed files with 106 additions and 32 deletions

View File

@@ -64,6 +64,15 @@ function drawText(image, input, style, oxStyleTable)
text = '<img src="'..(radarTable[image] or "")..'" style="width:12px;height:12px">'..text
end
ESX.TextUI(text, nil)
elseif Config.System.drawText == "jim" then
for k, v in pairs(input) do
input[k] = v.."<br>"
end
exports["jim-nui"]:drawText({
icon = nil,
text = text,
})
end
end