๐Ÿงพ
docs.scriptsfivem.com
  • ๐Ÿ‘‹Welcome
  • ๐ŸงพResources
    • ๐Ÿ“ฑsfphone
      • Installations
      • Config
      • Exports
      • Open phone
    • ๐Ÿš—sfracing
      • Installations
      • Config
      • Exports
    • ๐Ÿ’ตsfbanking
      • Installations
      • Config
      • Exports
    • ๐Ÿ’ปsfctab
      • Installations
      • Config
      • Open tablet
      • Exports // Triggers
    • ๐Ÿ› ๏ธsfcrafting
      • Installations
      • Config
      • Open crafting table
    • ๐Ÿ””sfnotify
      • Installations
      • Config
      • Exports // Triggers
    • ๐Ÿ‘ทโ€โ™‚๏ธsfjob
      • Installations
      • Config
      • Exports // Triggers
    • ๐Ÿ’ปsfjobtab
      • Installations
      • Config
      • Triggers
    • โŒšsfgps
      • Installations
      • Config
      • Exports
    • ๐Ÿ‘ฎsfpolice
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿฅsfems
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿ…ฟ๏ธsfgarages
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿ›๏ธsfdoj
      • Installations
      • Config
      • Exports/Triggers
    • ๐ŸŽฃsffishing
      • Installations
      • Config
      • Triggers
    • ๐Ÿš—sfvehicleshop
      • Installations
      • Config
    • ๐Ÿ”งsfmechanic
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿฐsfjail
      • Installations
      • Config
      • Exports
    • ๐Ÿ”‘sfkeys
      • Exports
Powered by GitBook
On this page
  • Step 1 โžก Dependencies
  • Not required but recommended:
  • Step 2 โžก Resources in server.cfg
  • Step 3 โžก Database
  • Step 4 โžก folder install-need-data
  • Step 5 โžก Click on Config
  1. Resources
  2. sfems

Installations

PrevioussfemsNextConfig

Last updated 10 days ago

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.

Not required but recommended:

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, sfjob and its cores above, but the other normal resources below

ensure sfems

Step 3 โžก Database

Run query/SQL query and paste below code

CREATE TABLE `jobs_ems_category` (
  `id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE `jobs_ems_otherdata` (
  `lastTreatments` text NOT NULL DEFAULT('[]')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

INSERT INTO `jobs_ems_otherdata` (`lastTreatments`) VALUES
('[]');

CREATE TABLE `jobs_ems_players` (
  `id` int(11) NOT NULL,
  `cid` varchar(64) NOT NULL,
  `notes` text NOT NULL DEFAULT('[]'), 
  `recipes` text NOT NULL DEFAULT('[]'),
  `historyJudgments` text NOT NULL DEFAULT('[]'),
  `isDead` int(1) NOT NULL DEFAULT 0,
  `hp` int(4) NOT NULL DEFAULT 200,
  `playerDamages` text NOT NULL DEFAULT('[]'),
  `playerDamagesInfo` text NOT NULL DEFAULT('[]')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE `jobs_ems_regulations` (
  `id` int(11) NOT NULL,
  `name` varchar(128) NOT NULL,
  `category` int(11) NOT NULL,
  `money` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

ALTER TABLE `jobs_ems_category` ADD PRIMARY KEY (`id`);
ALTER TABLE `jobs_ems_players` ADD PRIMARY KEY (`id`);
ALTER TABLE `jobs_ems_regulations` ADD PRIMARY KEY (`id`);
ALTER TABLE `jobs_ems_category` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_ems_players` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `jobs_ems_regulations` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

Example data:

INSERT INTO `jobs_ems_category` (`name`) VALUES
('General wounds'),
('Other');

Step 4 โžก folder install-need-data

Copy the data to the appropriate scripts or database, everything is described there.

Step 5 โžก Click on

๐Ÿงพ
๐Ÿฅ
Config
LogoGitHub - overextended/oxmysql: MySQL resource for FXServer.GitHub
Logoscriptsfivem.com | High quality resources for your FiveM server! | sfjob
Logoscriptsfivem.com | High quality resources for your FiveM server! | sfpolice
LogoGitHub - mkafrin/PolyZone: PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zoneGitHub
pre-configured for PolyZone in client_editable.lua/server_editable.lua
LogoGitHub - overextended/ox_lib: A collection of Lua functions to utilise in other resources.GitHub
pre-configured for ox_lib in client_editable.lua/server_editable.lua
LogoGitHub - overextended/ox_inventory: Slot-based inventory with metadata.GitHub
pre-configured for ox_inventory in client_editable.lua/server_editable.lua