mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 14:06:02 +01:00
Added support for: - Menus - Draw Text - Notifications - Skillchecks - ProgressBar TODO: - Input dialogs
58 lines
1.3 KiB
Lua
58 lines
1.3 KiB
Lua
local activeSkillCheck = false
|
|
|
|
function skillCheck(data)
|
|
local result = false
|
|
|
|
if Config.System.skillCheck == "qb" then
|
|
local Skillbar = exports["qb-minigames"]:Skillbar()
|
|
if Skillbar then
|
|
result = true
|
|
else
|
|
result = false
|
|
end
|
|
|
|
elseif Config.System.skillCheck == "ox" then
|
|
local Skillbar = exports[OXLibExport]:skillCheck(
|
|
{
|
|
"easy",
|
|
"easy",
|
|
"easy"
|
|
},
|
|
{
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4"
|
|
})
|
|
if Skillbar then
|
|
result = true
|
|
else
|
|
result = false
|
|
end
|
|
elseif Config.System.skillCheck == "gta" then
|
|
exports.jim_bridge:skillCheck()
|
|
|
|
elseif Config.System.skillCheck == "lation" then
|
|
local Skillbar = exports.lation_ui:skillCheck("",
|
|
{
|
|
"easy",
|
|
"easy",
|
|
"easy"
|
|
},
|
|
{
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4"
|
|
})
|
|
|
|
if Skillbar then
|
|
result = true
|
|
else
|
|
result = false
|
|
end
|
|
else
|
|
result = true
|
|
end
|
|
return result
|
|
end |