qbcore-framework / qb-management

Management menu for jobs & gangs
GNU General Public License v3.0
33 stars 167 forks source link

(exploit/fix) Unlimited money #44

Closed jnccloud closed 2 years ago

jnccloud commented 2 years ago

Describe Pull request This patches a free money exploit. If you try to withdrawal a negative amount, that amount is deposited into the money menu regardless of your funds on hand.

image image

If your PR is to fix an issue mention that issue here

Questions (please complete the following information):

jnccloud commented 2 years ago

The only change I made is added a check for if amount > 0 then ... end on both server sided files. Blame GH for the web for the weird compare.