4.7 KiB
4.7 KiB
title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
ngd-pillboxaddon | true | 2025-01-28T01:17:03.583Z | markdown | 2025-01-28T00:46:54.225Z |
Installation Steps
-
Install ngd-Bridge
Follow the guide to install ngd-Bridge HERE. -
Install ngd-pillboxaddon
Placengd-pillboxaddon
into your [ngd] folder. This script must be started afterngd-Bridge
. -
Add Items to Your Inventory
Copy the items listed below into your inventory. -
Copy Images
Move the images from theimg
folder into your inventory's images folder. -
Add the jobs into your framework.
Job Configuration (QB/QBX) (Click to Expand)
QB (old jobs.lua)
['pillboxfood'] = {
label = 'Pillbox Food',
defaultDuty = true,
grades = {
['0'] = { name = 'Employee', payment = 25 },
['1'] = { name = 'Owner', payment = 75, isboss = true },
},
},
['pillboxpharm'] = {
label = 'Pillbox Pharmacy',
defaultDuty = true,
grades = {
['0'] = { name = 'Employee', payment = 25 },
['1'] = { name = 'Owner', payment = 75, isboss = true },
},
},
QB (new jobs.lua)
pillboxfood = {
label = 'Pillbox Food',
type = 'pillboxfood',
defaultDuty = false,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 25 },
['1'] = { name = 'Owner', payment = 75, isboss = true },
},
},
pillboxpharm = {
label = 'Pillbox Pharmacy',
type = 'pillboxpharm',
defaultDuty = false,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 25 },
['1'] = { name = 'Owner', payment = 75, isboss = true },
},
},
QBX
pillboxfood = {
label = 'Pillbox Food',
type = 'pillboxfood',
defaultDuty = false,
offDutyPay = false,
grades = {
[0] = { name = 'Employee', payment = 25 },
[1] = { name = 'Owner', payment = 75, isboss = true },
},
},
pillboxpharm = {
label = 'Pillbox Pharmacy',
type = 'pillboxpharm',
defaultDuty = false,
offDutyPay = false,
grades = {
[0] = { name = 'Employee', payment = 25 },
[1] = { name = 'Owner', payment = 75, isboss = true },
},
},
ESX (If this doesn't work for you, you will need to build them manually into your modified database)
SELECT id FROM job_grades ORDER BY id DESC LIMIT 1 INTO @last_id;
SET @new_id = IFNULL(@last_id, 0) + 1;
INSERT INTO jobs (name, label, whitelisted) VALUES ('pillboxpharm', 'Pillbox Pharmacy', 0);
INSERT INTO job_grades (id, job_name, name, grade, label, salary, skin_male, skin_female)
VALUES (@new_id, 'pillboxpharm', 'employee', 0, 'Employee', 100, '{}', '{}');
INSERT INTO job_grades (id, job_name, name, grade, label, salary, skin_male, skin_female)
VALUES (@new_id + 1, 'pillboxpharm', 'boss', 1, 'Boss', 200, '{}', '{}');
INSERT INTO jobs (name, label, whitelisted) VALUES ('pillboxfood', 'Pillbox Food', 0);
INSERT INTO job_grades (id, job_name, name, grade, label, salary, skin_male, skin_female)
VALUES (@new_id, 'pillboxfood', 'employee', 0, 'Employee', 100, '{}', '{}');
INSERT INTO job_grades (id, job_name, name, grade, label, salary, skin_male, skin_female)
VALUES (@new_id + 1, 'pillboxfood', 'boss', 1, 'Boss', 200, '{}', '{}');
- Add the items into your framework/inventory.
Items List (Click to Expand)
-- Add these items to your inventory:
["ngd_pilllb"] = { label = "Pillbox Light Beer", weight = 0, stack = true, close = true, client = { image = "ngd_pilllb.png" } },
["ngd_pilllager"] = { label = "Pillbox Lager", weight = 0, stack = true, close = true, client = { image = "ngd_pilllager.png" } },
["ngd_pillstout"] = { label = "Pillbox Stout", weight = 0, stack = true, close = true, client = { image = "ngd_pillstout.png" } },
["ngd_pillpopcorn"] = { label = "Popcorn", weight = 0, stack = true, close = true, client = { image = "lgm_pillboxfood_1.png" } },
["ngd_pillsalad"] = { label = "Pillbox Salad", weight = 0, stack = true, close = true, client = { image = "ngd_pillsalad.png" } },
-- Add the rest of the items similarly...
Configuration Notes
-
Extensive Configuration Options
Open and configure all theConfig
files to match your server's settings. -
Customizable Menu Images
The images used in the menus can be replaced. They are located in theweb/menuimages
folder.