Skip to content

Commit 0f04a91

Browse files
committed
feat: bossmenu v2
1 parent 98cb5e7 commit 0f04a91

File tree

5 files changed

+28
-23
lines changed

5 files changed

+28
-23
lines changed

pages/bossmenu/faq.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

pages/bossmenu/installationguide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ensure bossmenu
1212

1313
## Configuration
1414

15-
The resource is configured via the `configs` folder.
15+
The resource is configured via the `configs` folder.

pages/commonissues.mdx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ This comprehensive troubleshooting guide addresses the most frequently encounter
2828
Solutions for "lacking entitlement" errors and asset ownership issues
2929
</Cards.Card>
3030

31-
<Cards.Card
32-
icon={<BugIcon />}
33-
title="Syntax Errors"
34-
href="/commonissues/syntaxerror"
35-
arrow
36-
>
37-
Fixing syntax errors and script parsing problems
38-
</Cards.Card>
31+
{" "}
32+
<Cards.Card
33+
icon={<BugIcon />}
34+
title="Syntax Errors"
35+
href="/commonissues/syntaxerror"
36+
arrow
37+
>
38+
Fixing syntax errors and script parsing problems
39+
</Cards.Card>
3940

4041
<Cards.Card
4142
icon={<QuestionMarkCircledIcon />}

pages/commonissues/otherbugs.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ Config.Target = 'ox_target'
194194
Join our active Discord server for real-time community support
195195
</Cards.Card>
196196

197-
<Cards.Card icon={<BugIcon />} title="Bug Reporting" arrow>
198-
Use our structured bug reporting channels for systematic issue tracking
199-
</Cards.Card>
197+
{" "}
198+
<Cards.Card icon={<BugIcon />} title="Bug Reporting" arrow>
199+
Use our structured bug reporting channels for systematic issue tracking
200+
</Cards.Card>
200201

201202
<Cards.Card icon={<QuestionMarkCircledIcon />} title="General Help" arrow>
202203
Get assistance with configuration, setup, and general questions

pages/updateresource.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ Keeping your Zerio-Scripts resources up-to-date ensures you have the latest feat
2222
href="#"
2323
/>
2424

25-
<Cards.Card
26-
icon={<UpdateIcon />}
27-
title="Discord Announcements"
28-
href="https://discord.zerio-scripts.com"
29-
arrow
30-
/>
25+
{" "}
26+
<Cards.Card
27+
icon={<UpdateIcon />}
28+
title="Discord Announcements"
29+
href="https://discord.zerio-scripts.com"
30+
arrow
31+
/>
3132

3233
<Cards.Card
3334
icon={<DownloadIcon />}

0 commit comments

Comments
 (0)