Pretty simple skill check
I got tired of all circle skill checks out there, so I wrote a different one. Cursor can move either way, which makes it kinda harder, also skill check is drawn natively, that means if you have 100% GPU usage, it won’t lag (can’t help if your PC is a potato, sorry).
It will work for any framework or as a standalone resource, keys to press are random, which can be defined in config.
P.S. PR’s are welcome.
Usage
exports.fd_skill:skill(difficulty)
-
difficulty
-easy
,medium
,hard
orveryhard
- difficulties can be adjusted, changed or added in
config.lua
file. - You can pass custom difficulty as an object
-
gap
- gap size for skill; -
speedMultiplier
- increase speed of the cursor; -
minPosition
- minimum position from top for gap; -
isVertical
- defines if skill should be vertical; -
isReverted
- defines if cursor should move from other side;
{ gap = 20, speedMultiplier = 1.0, minPosition = 50, isReversed = false, isVertical = false, }
-
- difficulties can be adjusted, changed or added in
Simple example
local success = exports.fd_skill:skill('easy')
if not success then
print('Skillcheck failed')
return
end
Simple example with custom difficulty
local success = exports.fd_skill:skill({
gap = 20,
speedMultiplier = 1.0,
minPosition = 50,
isReversed = false,
isVertical = false,
})
if not success then
print('Skillcheck failed')
return
end
Multi cycle example
local success = exports.fd_skill:skill({'medium', 'medium', 'medium', {
gap = 20,
speedMultiplier = 1.0,
minPosition = 50,
isReversed = false,
isVertical = false,
}})
if not success then
print('Skillcheck failed')
return
end
Download it from: Github
[Our Paid Resources]
- [PAID][STANDALONE/QB/ESX] Advanced Radio V2 /with Ranges, Lockable Channels, Jammers and more
- [PAID] [STANDALONE, QB, ESX] Companions / Pets
- [PAID] [ESX/QBCORE] Portable Storage / Containers
- [PAID] [ESX/QB] Remotely Controlled Vehicles (RC)
[Our free resources]