mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
I am still alive
This commit is contained in:
36
shared/skillcheck.lua
Normal file
36
shared/skillcheck.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user