mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-16 21:46:03 +01:00
36 lines
780 B
Lua
36 lines
780 B
Lua
|
|
|
|
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
|
|
else
|
|
result = true
|
|
end
|
|
return result
|
|
end |