With all due respect, your code is insanely difficult to work with.

if not menu and not Config.FreeUpgradeToClass[vclass] and not Config.JobPermissionAll and xPlayer.getMoney() >= t.cost or not menu and not Config.FreeUpgradeToClass[vclass] and Config.JobPermissionAll and Config.Customs[shop].job == xPlayer.job.name and Jobmoney(xPlayer.job.name,xPlayer) >= t.cost or menu then

This if statement is insane and it is clear that you yourself are confused, given the ridiculous redundancies. I appreciate your free releases, but as a developer myself that has to implement changes in your code for my clients, it’s just insane.