Jarrrk / HighLife

Open source feature configuration and issue tracker for the FiveM server HighLife Roleplay
https://highliferoleplay.net
70 stars 45 forks source link

Lottery Generating 2 Sets of Winning Numbers #6556

Closed daaaaaaz closed 3 months ago

daaaaaaz commented 3 months ago

What happened?

The lottery is generating 2 sets of winning numbers which means player odds of winning are being doubled.

From the beginning of the draw in the logs:

01:31:28: Drawing winners from 3255 tickets - winning numbers: [5,17,18,7,22,4]
01:31:28: Drawing winners from 3255 tickets - winning numbers: [14,20,13,9,11,19]

Verified as I had my numbers saved and decided to run them against both sets that were drawn.

chrome_IYGs1htp1o ApplicationFrameHost_DePq7As13T

Expected result

For it to generate and check 1 set of numbers.

Reproduction steps

  1. Play the lottery
  2. Wait for the draw

Importancy

Low

Additional information

I believe this is the cause of the secondary "Congrats! You have winnings to collect..." email that gets sent to the player too.

FiveM_b2944_GTAProcess_SdGGAsUAQQ

Jarrrk commented 3 months ago

Likely resolved.

Jarrrk commented 3 months ago

In turn with this problem, the Lottery has also been increasing the pot by double, I'm going to halving the current prize pool.

daaaaaaz commented 3 months ago

Still behaving the same way.

11:12:48: Drawing winners from 2475 tickets - winning numbers: [4,6,5,11,9,3]
11:12:48: Drawing winners from 2475 tickets - winning numbers: [9,22,14,7,5,18]