Installation Guide
Step 1: Run SQL Script
Open your SQL database.
Run the following script to create the necessary table:
CREATE TABLE `deliveries` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `citizen_id` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci', `firstname` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci', `lastname` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci', `delivery` INT(3) NOT NULL DEFAULT '0', `job` VARCHAR(255) NOT NULL COLLATE 'latin1_swedish_ci', PRIMARY KEY (`citizen_id`) USING BTREE, INDEX `id` (`id`) USING BTREE ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB AUTO_INCREMENT=0;
Step 2: Add Items in items.lua
items.lua
Open your
qb-core/shared/items.lua
.Add the following items:
['delivery_box1'] = { ['name'] = 'delivery_box1', ['label'] = 'Delivery Box', ['weight'] = 200, ['type'] = 'item', ['image'] = 'deliverybox.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Contains Hot Meal!', ["created"] = nil, ["decay"] = 2.0, ["delete"] = true }, ['delivery_recive'] = { ['name'] = 'delivery_recive', ['label'] = 'Delivery Invoice', ['weight'] = 200, ['type'] = 'item', ['image'] = 'delivery_recive.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Invoice To Get Paid!', ["created"] = nil, ["decay"] = 5.0, ["delete"] = true },
Step 3: Update player.lua
player.lua
Navigate to
[qb] -> qb-core -> server -> player.lua
.Add the following line inside the file
PlayerData.metadata['zomatoxp'] = PlayerData.metadata['zomatoxp'] or 0
Last updated