Skip to content

Commit 6338b0d

Browse files
committed
feat(vzn-cleanerjob): add job to framework tutorial
1 parent 845fdce commit 6338b0d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

pages/vzn-cleanerjob.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Steps } from "nextra/components";
2+
import { Tabs } from "nextra/components";
23

34
# VZN-CLEANERJOB
45

@@ -29,6 +30,39 @@ Advanced cleanerjob for your FiveM server
2930

3031
### Add `ensure vzn-cleanerjob` to your server.cfg
3132

33+
### Add `cleaner` job to your framework
34+
35+
<Tabs items={["ESX", "QB"]}>
36+
<Tabs.Tab>
37+
Run this SQL query in your database
38+
39+
```sql copy
40+
INSERT INTO `jobs` (`name`, `label`, `whitelisted`) VALUES
41+
('cleaner', 'Cleaner', 0);
42+
43+
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
44+
('cleaner', 0, 'employee', 'Employee', 500, '{}', '{}');
45+
```
46+
</Tabs.Tab>
47+
<Tabs.Tab>
48+
Add this field to `qb-core/shared/jobs.lua` between `QBShared.Jobs = {` (found at the top of the file) and `}` (found at the bottom of the file):
49+
50+
```lua copy
51+
cleaner = {
52+
label = 'Cleaner',
53+
defaultDuty = true,
54+
offDutyPay = false,
55+
grades = {
56+
['0'] = { name = 'Employee', payment = 50 }
57+
}
58+
},
59+
60+
```
61+
62+
</Tabs.Tab>
63+
64+
</Tabs>
65+
3266
</Steps>
3367

3468
## Compatibility

0 commit comments

Comments
 (0)