Files
jim_bridge/shared/skillcheck.lua

72 lines
1.7 KiB
Lua
Raw Normal View History

2025-08-14 20:08:09 +01:00
local skillCheckFunc = {
qb = {
start = function(data)
local Skillbar = exports["qb-minigames"]:Skillbar()
if Skillbar then
return true
else
return false
end
end,
},
ox = {
start = function(data)
local Skillbar = exports[OXLibExport]:skillCheck(
{
"easy",
"easy",
"easy"
},
{
"1",
"2",
"3",
"4"
})
if Skillbar then
return true
else
return false
end
end,
},
gta = {
start = function(data)
local Skillbar = exports.jim_bridge:skillCheck()
if Skillbar then
return true
else
return false
end
end,
},
lation = {
start = function(data)
local Skillbar = exports.lation_ui:skillCheck("",
{
"easy",
"easy",
"easy"
},
{
"1",
"2",
"3",
"4"
})
if Skillbar then
return true
else
return false
end
end,
},
2025-03-26 21:43:48 +00:00
2025-08-14 20:08:09 +01:00
}
2025-04-01 14:15:50 +01:00
2025-08-14 20:08:09 +01:00
function skillCheck(data)
if Config.System.skillCheck then
return skillCheckFunc[Config.System.skillCheck].start(data)
2025-03-26 21:43:48 +00:00
end
2025-08-14 20:08:09 +01:00
return true
2025-03-26 21:43:48 +00:00
end