Bug with display cash on any build > 1604

Hello.
So the bug is that when you use the native SetStatInt to change the players’ money, it shows a weird number, but only on builds that other than the normal build (1604)

  1. Client production and FXServer version - 3539
  2. What you expected to happen - Change the money to the argument value of the native, as it does in build 1604.
  3. What actually happens - Changes it to a weird huge number + the value you passed in the native (same for the bank money).
  4. Category of bug (eg. client, server, weapons, peds, native): client.
  5. Reproducible steps, preferably with example script(s)

Step 1: Enter a server one time with build 1604, the other time with higher, like 2060 or so.
Step 2: Start resource runcode (just an example you can also do it by adding the code itself as a resource).
Step 3: Invoke the next natives:

StatSetInt("MP0_WALLET_BALANCE", 10000, true) -- CASH
StatSetInt("BANK_BALANCE", 10000, true) -- BANK

You would see it works well on build 1604, a weird big number on higher builds.

This is how it looks like in build 2060 with only 300 cash:
( StatSetInt("MP0_WALLET_BALANCE", 300, true) )
image

Yeah, R* bug:

This got obfuscated more in newer releases, and these stats are not meant to directly be set by natives, so R* doesn’t hit this issue. :stuck_out_tongue:

1 Like

Fixed.

2 Likes