@@ -12,10 +12,10 @@ You can add new jobs, models, positions and such via the `/bossmenuadmin` comman
1212
1313<Tabs items = { [' ESX' , ' QBCore' , ' QBXCore' ]} >
1414 <Tabs.Tab >
15- Open the ` es_extended/server/paycheck.lua ` file, and find the ` local salary = xPlayer.job.grade_salary ` line and replace that with the line below:
15+ Open the ` es_extended/server/paycheck.lua ` file, and find the ` local salary = ... ` line and replace that with the line below:
1616
1717 ``` lua
18- local salary = ESX . Jobs [ xPlayer . job . name ]. grades [ tostring (xPlayer .job .grade )]. salary
18+ local salary = exports [ " zerio-bossmenu " ]: GetEmployeeActiveSalary (xPlayer .identifier , xPlayer . job .name )
1919 ```
2020
2121 Also, make sure that your other scripts actually listen to the ` es_extended:updatedJobs ` event, though.
@@ -148,7 +148,7 @@ You can add new jobs, models, positions and such via the `/bossmenuadmin` comman
148148 end
149149 cb (SaveResourceFile (GetCurrentResourceName (), " shared/gangs.lua" , data , - 1 ))
150150 end )
151-
151+
152152 AddEventHandler (" qb-core:server:updateSharedJobsFile" , function (data , cb )
153153 local oldData = LoadResourceFile (GetCurrentResourceName (), " shared/jobs.lua" )
154154 if oldData then
@@ -162,13 +162,14 @@ You can add new jobs, models, positions and such via the `/bossmenuadmin` comman
162162
163163 For scripts you want to integrate with this, you can listen to qbox's official ` qbx_core:server:onJobUpdate ` and ` qbx_core:client:onJobUpdate ` events.
164164 </Tabs.Tab >
165+
165166</Tabs >
166167
167168## How to set up support for individual salaries
168169
169170<Tabs items = { [' ESX' , ' QBCore' , ' QBXCore' ]} >
170171 <Tabs.Tab >
171- Open the ` es_extended/server/modules/paycheck.lua ` file, find the ` local salary = xPlayer.job.grade_salary ` line and replace that with the line below:
172+ Open the ` es_extended/server/modules/paycheck.lua ` file, find the ` local salary = .... ` line and replace that with the line below:
172173
173174 ``` lua
174175 local salary = exports [" zerio-bossmenu" ]:GetEmployeeActiveSalary (xPlayer .identifier , xPlayer .job .name )
@@ -192,4 +193,5 @@ You can add new jobs, models, positions and such via the `/bossmenuadmin` comman
192193 local payment = exports [" zerio-bossmenu" ]:GetEmployeeActiveSalary (Player .PlayerData .citizenid , Player .PlayerData .job .name )
193194 ```
194195 </Tabs.Tab >
195- </Tabs >
196+
197+ </Tabs >
0 commit comments