qbcore-framework/qb-crypto

no global Config

Andyauk opened this issue · 1 comments

[    script:qb-crypto] SCRIPT ERROR: @qb-crypto/server/main.lua:75: attempt to index a nil value (global 'Config')
[    script:qb-crypto] > HandlePriceChance (@qb-crypto/server/main.lua:75)
[    script:qb-crypto] > fn (@qb-crypto/server/main.lua:329

its trying to call this, its what I did mention back when it was a PR.

    if currentValue <= Config.Lower then
        currentValue = Config.Lower
    elseif currentValue >= Config.Upper then
        currentValue = Config.Upper
    end

as its called Crypto in the config I guess it should be, Crypto.Lower?

Please download the latest version of the resource and run it, unmodified.