I mean, what happens to the normal ESX paycheck function? Do you have to delete it or something? Or does your script just overwrite it? And with your script, the “boss” can’t manually change the salary anymore either, right? So exactly what I actually want.
The default paycheck system doesn’t have to be deleted, but it’s recommended.
If you’d like to disable it, go to: es_extended/shared/config/main.lua → Config.EnablePaycheck = false (line 50).
And yes, the boss can’t manually change the salary, you can set it yourself in the config.
If it’s for ESX, it’s best to edit the paycheck in es_extended and adapt it for ox_lib so that it automatically sends the player’s salary and you don’t have to manually edit the salary for each job.