Installations
Step 1 โก Dependencies
This is one of the most important parts, since without the dependencies, the resource will never work or not start, here we will list the dependencies with their respective links for you to download and add them to your server.
Step 2 โก Resources in server.cfg
if you are using ESX โก NEVER, but NEVER, you must place the resources above es_extended
, if you do this they will never work and will throw errors
The correct order of the resources is as follows, always keeping es_extended and its cores above, but the other normal resources below
ensure sfjob
Step 3 โก Database
Run query/SQL query and paste below code
CREATE TABLE `jobs_players` (
`id` int(11) NOT NULL,
`playerid` varchar(64) NOT NULL,
`workname` varchar(64) NOT NULL,
`position` int(11) NOT NULL DEFAULT 0,
`worktime` int(11) NOT NULL DEFAULT 0,
`worktime_all` int(11) NOT NULL DEFAULT 0,
`worktime_payout` int(11) NOT NULL DEFAULT 0,
`date_creation` varchar(64) NOT NULL,
`datestart` int(14) NOT NULL,
`active` int(2) NOT NULL DEFAULT 0,
`whoadd` varchar(64) NOT NULL,
`other` text NOT NULL DEFAULT ('[]')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE `jobs_positions` (
`id` int(11) NOT NULL,
`workname` varchar(64) NOT NULL,
`position` int(11) NOT NULL,
`label` varchar(64) NOT NULL,
`money` int(32) NOT NULL,
`permissions` text NOT NULL DEFAULT ('[]')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE `jobs_settings` (
`id` int(11) NOT NULL,
`workname` varchar(64) NOT NULL,
`name` varchar(64) NOT NULL,
`date_creation` varchar(64) NOT NULL,
`maxlimit` int(11) NOT NULL DEFAULT 6,
`updates` varchar(4096) NOT NULL DEFAULT ('{}'),
`system` int(2) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE `jobs_products` (
`id` int(11) NOT NULL,
`workname` varchar(64) NOT NULL,
`product` varchar(64) NOT NULL,
`price` int(11) NOT NULL,
`list` varchar(4096) NOT NULL DEFAULT ('[]')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE `jobs_announcements` (
`id` int(11) NOT NULL,
`title` varchar(256) NOT NULL,
`message` text NOT NULL,
`who` varchar(128) NOT NULL,
`date` varchar(64) NOT NULL,
`workname` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `jobs_invoices` (
`id` int(11) NOT NULL,
`fromnumber` int(11) NOT NULL,
`tonumber` int(11) NOT NULL,
`amount` int(11) NOT NULL,
`reason` varchar(512) NOT NULL,
`who` varchar(64) NOT NULL,
`date` varchar(64) NOT NULL,
`workname` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `jobs_updates` (
`id` int(11) NOT NULL,
`name` varchar(256) NOT NULL,
`description` varchar(512) NOT NULL,
`cost` int(11) NOT NULL,
`action` varchar(64) NOT NULL,
`need` int(11) DEFAULT 0,
`workname` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE `sf_customproperties` (
`id` int(11) NOT NULL,
`stash` varchar(256) NOT NULL,
`slots` int(11) NOT NULL,
`weight` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
ALTER TABLE `jobs_players` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `jobs_positions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `jobs_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `jobs_products` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `jobs_announcements` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `jobs_invoices` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `jobs_updates` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
ALTER TABLE `sf_customproperties` ADD PRIMARY KEY (`id`);
ALTER TABLE `jobs_players` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_positions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_products` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_announcements` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_invoices` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_updates` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `sf_customproperties` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
Example data:
INSERT INTO `jobs_products` (`workname`, `product`, `price`, `list`) VALUES
('burgershot', 'Kit Mini', 13, '[{ \"product\": \"hotdog\", \"amount\": 1 }, { \"product\": \"water\", \"amount\": 1 }]'),
('burgershot', 'bsfries', 8, '[]');
INSERT INTO `jobs_updates` (`name`, `description`, `cost`, `action`, `need`, `workname`) VALUES
('Increased employee limit (+4)', 'Hire more employees in your business.', 1000, 'people1', 0, 'all'),
('Increased employee limit (+5)', 'Hire more employees in your business.', 5000, 'people2', 1, 'burgershot');
Step 4 โก Click on Config
Last updated