This is a JavaScript mini game that prompts players to press certain keys within a set amount of time and returns how many times they messed up
Preview
Configuration
This resource requires no configuration and has no dependencies
Usage example
localfunctionminigameResults(faults) -- callback function with fault amountif faults ==0thenprint('Player finished game with 0 faults!')elseif faults ==1thenprint('Player finished game with 1 faults!')elseif faults ==2thenprint('Player finished game with 2 faults!')endendRegisterCommand('keyminigame', function()TriggerEvent('qb-keyminigame:show') -- displays game UI on screenTriggerEvent('qb-keyminigame:start', minigameResults) -- starts gameend)