Installation

1. Download resource

Download the purchased resource from keymaster - the official site of fivem with purchased resources.

2. Dependencies

2. Database

Add the required sql file to your database

Main database table
CREATE TABLE IF NOT EXISTS `vms_business` (
  `id` varchar(50) NOT NULL DEFAULT '',
  `type` varchar(50) NOT NULL DEFAULT '',
  `owner` mediumtext DEFAULT NULL,
  `employees` longtext DEFAULT '{}',
  `stock` longtext DEFAULT '{}',
  `data` longtext DEFAULT '{}',
  `announcements` longtext DEFAULT '{}',
  `orders` longtext DEFAULT '{}'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
ESX - Jobs
INSERT INTO `jobs` (name, label) VALUES
    ('ltd1', 'LTD Gasoline 1'),
    ('ltd2', 'LTD Gasoline 2'),
    ('ltd3', 'LTD Gasoline 3'),
    ('ltd4', 'LTD Gasoline 4'),
    ('ltd5', 'LTD Gasoline 5'),
    ('robsliquor1', 'Robs Liquor 1'),
    ('robsliquor2', 'Robs Liquor 2'),
    ('robsliquor3', 'Robs Liquor 3'),
    ('robsliquor4', 'Robs Liquor 4'),
    ('twentyfourseven1', 'Twenty Four Seven 1'),
    ('twentyfourseven2', 'Twenty Four Seven 2'),
    ('twentyfourseven3', 'Twenty Four Seven 3'),
    ('twentyfourseven4', 'Twenty Four Seven 4'),
    ('twentyfourseven5', 'Twenty Four Seven 5'),
    ('twentyfourseven6', 'Twenty Four Seven 6'),
    ('twentyfourseven7', 'Twenty Four Seven 7'),
    ('twentyfourseven8', 'Twenty Four Seven 8'),
    ('twentyfourseven9', 'Twenty Four Seven 9');

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
	('ltd1', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('ltd1', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('ltd1', 2, 'boss', 'Boss', 300, '{}', '{}'),
	('ltd2', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('ltd2', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('ltd2', 2, 'boss', 'Boss', 300, '{}', '{}'),
	('ltd3', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('ltd3', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('ltd3', 2, 'boss', 'Boss', 300, '{}', '{}'),
	('ltd4', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('ltd4', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('ltd4', 2, 'boss', 'Boss', 300, '{}', '{}'),
	('ltd5', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('ltd5', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('ltd5', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('robsliquor1', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('robsliquor1', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('robsliquor1', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('robsliquor2', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('robsliquor2', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('robsliquor2', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('robsliquor3', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('robsliquor3', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('robsliquor3', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('robsliquor4', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('robsliquor4', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('robsliquor4', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven1', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven1', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven1', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven2', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven2', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven2', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven3', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven3', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven3', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven4', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven4', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven4', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven5', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven5', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven5', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven6', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven6', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven6', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven7', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven7', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven7', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven8', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven8', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven8', 2, 'boss', 'Boss', 300, '{}', '{}'),
    ('twentyfourseven9', 0, 'employee', 'Employee', 150, '{}', '{}'),
	('twentyfourseven9', 1, 'manager', 'Manager', 200, '{}', '{}'),
	('twentyfourseven9', 2, 'boss', 'Boss', 300, '{}', '{}');
ESX - Items
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ("hack_phone", "Hack Phone", 2, 0, 1),
    ("sandwich", "Sandwich", 2, 0, 1),
    ("hotdog", "Hot-Dog", 2, 0, 1),
    ("hamburger", "Hamburger", 2, 0, 1),
    ("pq_candy", "P's & Q's Candies", 2, 0, 1),
    ("sprunk", "Sprunk Can", 2, 0, 1),
    ("ecola", "e-Cola Can", 2, 0, 1),
    ("coffee", "Coffee Cup", 2, 0, 1),
    ("logger_beer", "Logger Beer", 2, 0, 1),
    ("patriot_beer", "Patriot Beer", 2, 0, 1),
    ("piswasser_beer", "Piswasser Beer", 2, 0, 1),
    ("themount_whiskey", "The Mount Whiskey", 2, 0, 1),
    ("bourgeoix_cognac", "BOURGEOIX cognac", 2, 0, 1),
    ("cardiaque_cognac", "Cardiaque Cognac", 2, 0, 1),
    ("bleuterd_champagne", "BLEUTER'D Champagne", 2, 0, 1),
    ("bleuterd_champagne2", "BLEUTER'D Champagne", 2, 0, 1),
    ("apple", "Apple", 2, 0, 1),
    ("orange", "Orange", 2, 0, 1),
    ("pear", "Pear", 2, 0, 1),
    ("rolling_paper", "Rolling Paper", 2, 0, 1),
    ("lighter", "Lighter", 2, 0, 1),
    ("fixkit", "Repair Kit", 2, 0, 1),
    ("cigarette", "Cigarette", 2, 0, 1);

3. Lua files

QB-Core - Jobs

Jobs to qb-core/shared/jobs.lua

['ltd1'] = {
        label = "LTD Gasoline 1",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['ltd2'] = {
        label = "LTD Gasoline 2",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['ltd3'] = {
        label = "LTD Gasoline 3",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['ltd4'] = {
        label = "LTD Gasoline 4",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['ltd5'] = {
        label = "LTD Gasoline 5",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['robsliquor1'] = {
        label = "Robs Liquor 1",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['robsliquor2'] = {
        label = "Robs Liquor 2",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['robsliquor3'] = {
        label = "Robs Liquor 3",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['robsliquor4'] = {
        label = "Robs Liquor 4",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven1'] = {
        label = "Twenty Four Seven 1",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven2'] = {
        label = "Twenty Four Seven 2",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven3'] = {
        label = "Twenty Four Seven 3",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven4'] = {
        label = "Twenty Four Seven 4",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven5'] = {
        label = "Twenty Four Seven 5",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven6'] = {
        label = "Twenty Four Seven 6",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven7'] = {
        label = "Twenty Four Seven 7",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven8'] = {
        label = "Twenty Four Seven 8",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
    ['twentyfourseven9'] = {
        label = "Twenty Four Seven 9",
        defaultDuty = false,
		offDutyPay = false,
        grades = {
            ['0'] = {name = 'Employee', payment = 150},
            ['1'] = {name = 'Manager', payment = 200},
            ['2'] = {name = 'Boss', isboss = true, payment = 300},
        },
    },
QB-Core - Items

Items for qb-core/shared/items.lua

['hack_phone'] = {['name'] = 'hack_phone', ['label'] = 'Hack Phone', ['weight'] = 200, ['type'] = 'item', ['image'] = 'hack_phone.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['sandwich'] = {['name'] = 'sandwich', ['label'] = 'Sandwich', ['weight'] = 200, ['type'] = 'item', ['image'] = 'sandwich.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['hotdog'] = {['name'] = 'hotdog', ['label'] = 'Hot-Dog', ['weight'] = 200, ['type'] = 'item', ['image'] = 'hotdog.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['hamburger'] = {['name'] = 'hamburger', ['label'] = 'Hamburger', ['weight'] = 200, ['type'] = 'item', ['image'] = 'hamburger.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['pq_candy'] = {['name'] = 'pq_candy', ['label'] = 'P's & Q's Candies', ['weight'] = 200, ['type'] = 'item', ['image'] = 'pq_candy.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['sprunk'] = {['name'] = 'sprunk', ['label'] = 'Sprunk Can', ['weight'] = 200, ['type'] = 'item', ['image'] = 'sprunk.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['ecola'] = {['name'] = 'ecola', ['label'] = 'e-Cola Can', ['weight'] = 200, ['type'] = 'item', ['image'] = 'ecola.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['coffee'] = {['name'] = 'coffee', ['label'] = 'Coffee Cup', ['weight'] = 200, ['type'] = 'item', ['image'] = 'coffee.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['logger_beer'] = {['name'] = 'logger_beer', ['label'] = 'Logger Beer', ['weight'] = 200, ['type'] = 'item', ['image'] = 'logger_beer.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['patriot_beer'] = {['name'] = 'patriot_beer', ['label'] = 'Patriot Beer', ['weight'] = 200, ['type'] = 'item', ['image'] = 'patriot_beer.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['piswasser_beer'] = {['name'] = 'piswasser_beer', ['label'] = 'Piswasser Beer', ['weight'] = 200, ['type'] = 'item', ['image'] = 'piswasser_beer.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['themount_whiskey'] = {['name'] = 'themount_whiskey', ['label'] = 'The Mount Whiskey', ['weight'] = 200, ['type'] = 'item', ['image'] = 'themount_whiskey.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['bourgeoix_cognac'] = {['name'] = 'bourgeoix_cognac', ['label'] = 'BOURGEOIX cognac', ['weight'] = 200, ['type'] = 'item', ['image'] = 'bourgeoix_cognac.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['cardiaque_cognac'] = {['name'] = 'cardiaque_cognac', ['label'] = 'Cardiaque Cognac', ['weight'] = 200, ['type'] = 'item', ['image'] = 'cardiaque_cognac.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['bleuterd_champagne'] = {['name'] = 'bleuterd_champagne', ['label'] = 'BLEUTERD Champagne', ['weight'] = 200, ['type'] = 'item', ['image'] = 'bleuterd_champagne.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['bleuterd_champagne2'] = {['name'] = 'bleuterd_champagne2', ['label'] = 'BLEUTERD Champagne', ['weight'] = 200, ['type'] = 'item', ['image'] = 'bleuterd_champagne2.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['apple'] = {['name'] = 'apple', ['label'] = 'Apple', ['weight'] = 200, ['type'] = 'item', ['image'] = 'apple.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['orange'] = {['name'] = 'orange', ['label'] = 'Orange', ['weight'] = 200, ['type'] = 'item', ['image'] = 'orange.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['pear'] = {['name'] = 'pear', ['label'] = 'Pear', ['weight'] = 200, ['type'] = 'item', ['image'] = 'pear.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['rolling_paper'] = {['name'] = 'rolling_paper', ['label'] = 'Rolling Paper', ['weight'] = 200, ['type'] = 'item', ['image'] = 'rolling_paper.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['lighter'] = {['name'] = 'lighter', ['label'] = 'Lighter', ['weight'] = 200, ['type'] = 'item', ['image'] = 'lighter.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['fixkit'] = {['name'] = 'fixkit', ['label'] = 'Repair Kit', ['weight'] = 200, ['type'] = 'item', ['image'] = 'fixkit.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},
['cigarette'] = {['name'] = 'cigarette', ['label'] = 'Cigarette', ['weight'] = 200, ['type'] = 'item', ['image'] = 'cigarette.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = ''},

Last updated