-
Notifications
You must be signed in to change notification settings - Fork 40
Ability to spam completed callback #14
Comments
Doesnt resolve that you can hold SPACE and spam the event that is triggered afterwards multiple times. You can essential do the process of minigame > hold space > get unlimited amounts of items if the code in success gives items @Mobius1 Are you still refactoring this code or is it abandoned? |
You can fix this by changing the app.js file from line 190 to 212 to look like this |
That seems to have fixed it thank you very much |
Changed code to
RegisterNUICallback('progress_minigame_input', function(data, cb)
if(not MiniGameCompleted) then
if OnComplete ~= nil then
OnComplete(data.success == true)
end
StopAnimation()
MiniGameCompleted = true
end
cb('ok')
end)
The text was updated successfully, but these errors were encountered: