Jesper-Hustad / NoPixel-minigame

https://jesper-hustad.github.io/NoPixel-minigame/index
119 stars 89 forks source link

[Puzzle/FiveM] Adjust time and amount #35

Open Tabby-Labs opened 3 years ago

Tabby-Labs commented 3 years ago

how to adjust the puzzle time and puzzle amount in fivem?? image

this is my exports image

RealDebugg commented 3 years ago

Not currently a feature, I'll look into adding it hopefully later this weekend :)

Jesper-Hustad commented 3 years ago

You can change out the variables in puzzle-handler.js:

let PuzzleTime = 7
let PuzzleAmount = 4

With global var variables defined when you start the puzzle at the bottom of script.js from the FiveM event.

Tabby-Labs commented 3 years ago

Awesome, thanks!

On Wed, 6 Oct 2021 at 06:18, Jesper Hustad @.***> wrote:

You can change out the variables in puzzle-handler.js:

let PuzzleTime = 7let PuzzleAmount = 4

With global var variables defined when you start the puzzle at the bottom of script.js from the FiveM event.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jesper-Hustad/NoPixel-minigame/issues/35#issuecomment-934933305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVGGTA7KH3GSJVWLBGDPB3DUFN2THANCNFSM5FKYJZLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

daytonbetts commented 2 years ago

How do we change the time in game. 7 seconds is way too fast. i changed it but it didnt work

Jesper-Hustad commented 2 years ago

How do we change the time in game. 7 seconds is way too fast. i changed it but it didnt work

Look at answer above by me

daytonbetts commented 2 years ago

How do we change the time in game. 7 seconds is way too fast. i changed it but it didnt work

Look at answer above by me

I did that where it says time but its not working in game for some reason. i changed the 7 too 20

daytonbetts commented 2 years ago

i would put a picture in here if it would let me

RealDebugg commented 2 years ago

I'm currently spending some time in RedM but I really wanna integrate this ASAP once I've got time to sit down with this. Its not a feature in the LUA code but can be done by modifying the JS at this time.

daytonbetts commented 2 years ago

const timeRange = 30 const puzzleRange = 4

daytonbetts commented 2 years ago

I bought a script from a guy that uses the hacking but he wont help.