mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Add support for built in nui menu
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
---------------------
|
||||
This module provides a unified function to open menus using the configured menu system.
|
||||
Supported systems include:
|
||||
• jim-nui (kinda)
|
||||
• jim_bridge (built-in nui menu that works on any framework)
|
||||
• ox (or ox_context)
|
||||
• qb (using QBMenuExport)
|
||||
• gta (using WarMenu)
|
||||
|
||||
@@ -63,15 +63,6 @@ function drawText(image, input, style, oxStyleTable)
|
||||
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,
|
||||
})
|
||||
|
||||
elseif Config.System.drawText == "red" then
|
||||
-- Concatenate input lines and apply GTA style formatting.
|
||||
for i = 1, #input do
|
||||
|
||||
@@ -70,13 +70,6 @@ function triggerNotify(title, message, type, src)
|
||||
TriggerClientEvent(getScript()..":DisplayESXNotify", src, type, message)
|
||||
end
|
||||
|
||||
elseif Config.System.Notify == "jim" then
|
||||
if not src then
|
||||
exports["jim-nui"]:Notify(type, message)
|
||||
else
|
||||
TriggerClientEvent("jim-nui:client:notify'", src, type, message)
|
||||
end
|
||||
|
||||
elseif Config.System.Notify == "red" then
|
||||
if isStarted("jim-redui") then
|
||||
if not src then
|
||||
|
||||
Reference in New Issue
Block a user