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.
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
CREATETABLE `jobs_players` (`id`int(11) NOT NULL,`playerid`varchar(64) NOT NULL,`workname`varchar(64) NOT NULL,`position`int(11) NOT NULLDEFAULT0,`worktime`int(11) NOT NULLDEFAULT0,`worktime_all`int(11) NOT NULLDEFAULT0,`worktime_payout`int(11) NOT NULLDEFAULT0,`date_creation`varchar(64) NOT NULL,`datestart`int(14) NOT NULL,`active`int(2) NOT NULLDEFAULT0,`whoadd`varchar(64) NOT NULL,`other`textNOT NULLDEFAULT ('[]')) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;CREATETABLE `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`textNOT NULLDEFAULT ('[]')) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;CREATETABLE `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 NULLDEFAULT6,`updates`varchar(4096) NOT NULLDEFAULT ('{}'),`system`int(2) NOT NULLDEFAULT0) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;CREATETABLE `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 NULLDEFAULT ('[]')) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;CREATETABLE `jobs_announcements` (`id`int(11) NOT NULL,`title`varchar(256) NOT NULL,`message`textNOT 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;CREATETABLE `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;CREATETABLE `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) DEFAULT0,`workname`varchar(64) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;CREATETABLE `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;ALTERTABLE`jobs_players`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`jobs_positions`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`jobs_settings`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`jobs_products`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`jobs_announcements`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`jobs_invoices`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`jobs_updates`ADDPRIMARY KEY (`id`), ADDUNIQUEKEY`id` (`id`);ALTERTABLE`sf_customproperties`ADDPRIMARY KEY (`id`);ALTERTABLE`jobs_players`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`jobs_positions`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`jobs_settings`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`jobs_products`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`jobs_announcements`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`jobs_invoices`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`jobs_updates`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;ALTERTABLE`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');