๐Ÿงพ
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
  • Step 2 โžก Resources in server.cfg
  • Step 3 โžก Database
  • Step 4 โžก Click on Config
  1. Resources
  2. sfcrafting

Installations

PrevioussfcraftingNextConfig

Last updated 1 year 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.

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 sfcrafting

Step 3 โžก Database

Run query/SQL query and paste below code

CREATE TABLE `crafting` (
  `id` int NOT NULL,
  `name` varchar(64) NOT NULL,
  `invid` varchar(64) NOT NULL,
  `job` varchar(128) NOT NULL,
  `itemid` varchar(64) NOT NULL,
  `products` text NOT NULL,
  `display` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `crafting` ADD PRIMARY KEY (`id`);
ALTER TABLE `crafting` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

Example data for crafting tables:

INSERT INTO `crafting` (`name`, `invid`, `job`, `itemid`, `products`, `display`) VALUES ('table2', 'client', 'none', 'cocaine', '[{\"amount\":\"1\",\"item\":\"drug_white\"}]', 0);
INSERT INTO `crafting` (`name`, `invid`, `job`, `itemid`, `products`, `display`) VALUES ('table1', 'client', 'none', 'heartstopper', '[ {\"amount\":\"1\",\"item\":\"bun\"},{\"amount\":\"3\",\"item\":\"patty\"},{\"amount\":\"3\",\"item\":\"cheese\"},{\"amount\":\"1\",\"item\":\"tomato\"},{\"amount\":\"1\",\"item\":\"lettuce\"},{\"amount\":\"1\",\"item\":\"sauce\"}, ]', 1);

Step 4 โžก Click on

๐Ÿงพ
๐Ÿ› ๏ธ
Config
GitHub - overextended/oxmysql: MySQL resource for FXServer.GitHub
GitHub - overextended/ox_inventory: Slot-based inventory with metadata.GitHub
Recomended
GitHub - overextended/ox_target: Standalone "third-eye" targeting resource.GitHub
Recomended
Logo
Logo
Logo