Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
Download the purchased resource from - the official site of FiveM with purchased resources.
This script needs a few extra resources to work properly. Below you will find a list of things to download - click the link, download and upload to your server just like other resources.
ox_fuel
Recommended It's not required but for fuel it is prepared to sell the goods.
LegacyFuel
It's not required but for fuel it is prepared to sell the goods.
This is a very important step - without it, the script will not work properly. Paste the SQL code into your database.
No worries - we've prepared a short guide that shows you step by step how to import an SQL file into your database: 👉
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;
The script uses its own items. Depending on what inventory you are using, select the appropriate section and add these items to either your item file or database.
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);
['hack_phone'] = {label = "Hack Phone", weight = 2, stack = true, allowArmed = true},
['patriot_beer'] = {label = "Patriot Beer", weight = 1, stack = true, allowArmed = true},
['themount_whiskey'] = {label = "The Mount Whiskey", weight = 1, stack = true, allowArmed = true},
['pq_candy'] = {label = "P's & Q's Candies", weight = 1, stack = true, allowArmed = true},
['rolling_paper'] = {label = "Rolling Paper", weight = 1, stack = true, allowArmed = true},
['logger_beer'] = {label = "Logger Beer", weight = 1, stack = true, allowArmed = true},
['sprunk'] = {label = "Sprunk Can", weight = 1, stack = true, allowArmed = true},
['sandwich'] = {label = "Sandwich", weight = 1, stack = true, allowArmed = true},
['bourgeoix_cognac'] = {label = "BOURGEOIX cognac", weight = 1, stack = true, allowArmed = true},
['fixkit'] = {label = "Repair Kit", weight = 1, stack = true, allowArmed = true},
['ecola'] = {label = "e-Cola Can", weight = 1, stack = true, allowArmed = true},
['bleuterd_champagne2'] = {label = "BLEUTER'D Champagne", weight = 1, stack = true, allowArmed = true},
['lighter'] = {label = "Lighter", weight = 1, stack = true, allowArmed = true},
['orange'] = {label = "Orange", weight = 1, stack = true, allowArmed = true},
['pear'] = {label = "Pear", weight = 1, stack = true, allowArmed = true},
['apple'] = {label = "Apple", weight = 1, stack = true, allowArmed = true},
['coffee'] = {label = "Coffee Cup", weight = 1, stack = true, allowArmed = true},
['piswasser_beer'] = {label = "Piswasser Beer", weight = 1, stack = true, allowArmed = true},
['hamburger'] = {label = "Hamburger", weight = 1, stack = true, allowArmed = true},
['cardiaque_cognac'] = {label = "Cardiaque Cognac", weight = 1, stack = true, allowArmed = true},
['hotdog'] = {label = "Hot-Dog", weight = 1, stack = true, allowArmed = true},
['bleuterd_champagne'] = {label = "BLEUTER'D Champagne", weight = 1, stack = true, allowArmed = true},
['cigarette'] = {label = "Cigarette", weight = 1, stack = true, allowArmed = true},
['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'] = ''},
Some functions work only if the player has a proper job. In this section, you will find ready-made job that you need to add in your framework (ESX/QB).
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, '{}', '{}');
['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},
},
},
To start a resource in your server.cfg
, ensure that it begins after your framework has been initiated. For instance, if you are using a framework like es_extended
, you should start resource after it, like so:
start [core] # For example, here is your framework (esx/qb-core)
start PolyZone
# VMS Resources
start vms_stores
start ox_fuel # (Optional)
start LegacyFuel # (Optional)
Ensure there are no syntax errors or incorrect paths in your server.cfg
.