jimathy / jim-shops

QBCore QB-Menu based replacement for qb-shops
53 stars 42 forks source link

Money bug #41

Closed IlMicioLetale closed 9 months ago

IlMicioLetale commented 10 months ago

If money 0 still buy products same with banking

Dezavu-GR commented 9 months ago

line 106:

if balance < (tonumber(price) * tonumber(amount)) then -- Check for money first if not enough, stop here
    triggerNotify(nil, "Not enough money", "error", src)
end

add: "return" in line 108. Should be like this:

if balance < (tonumber(price) * tonumber(amount)) then -- Check for money first if not enough, stop here
    triggerNotify(nil, "Not enough money", "error", src)
    return
end
IlMicioLetale commented 9 months ago

Thank you so much!