๐Ÿงพ
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. sfctab

Installations

PrevioussfctabNextConfig

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 sfctab

Step 3 โžก Database

Run query/SQL query and paste below code

CREATE TABLE `crimetab` (
  `id` int(11) NOT NULL,
  `name` varchar(64) DEFAULT NULL,
  `owner` varchar(64) DEFAULT NULL,
  `date_creation` varchar(64) NOT NULL,
  `maxlimit` int(11) NOT NULL DEFAULT 6,
  `points` int(11) NOT NULL DEFAULT 0,
  `mission_active` int(11) NOT NULL DEFAULT 0,
  `mission_started` int(11) NOT NULL DEFAULT 0,
  `mission_ending` int(11) NOT NULL DEFAULT 0,
  `mission_success` int(11) NOT NULL DEFAULT 0,
  `stats` text NOT NULL DEFAULT ('{}'),
  `updates` text NOT NULL DEFAULT ('{}')
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE `crimetab_missions` (
  `id` int(11) NOT NULL,
  `name` varchar(512) NOT NULL,
  `description` text NOT NULL,
  `cost` int(11) NOT NULL,
  `currency` varchar(16) NOT NULL,
  `action` varchar(32) NOT NULL,
  `lasttime` varchar(64) NOT NULL DEFAULT '0',
  `active` int(11) NOT NULL DEFAULT 0,
  `waiting` int(11) NOT NULL DEFAULT 600
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE `crimetab_players` (
  `id` int(11) NOT NULL,
  `playerid` varchar(64) NOT NULL,
  `crimeid` int(11) NOT NULL,
  `position` int(11) NOT NULL,
  `date_creation` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE `crimetab_updates` (
  `id` int(11) NOT NULL,
  `name` varchar(512) NOT NULL,
  `description` text NOT NULL,
  `cost` int(11) NOT NULL,
  `currency` varchar(16) NOT NULL,
  `action` varchar(32) NOT NULL,
  `need` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

ALTER TABLE `crimetab` ADD PRIMARY KEY (`id`);
ALTER TABLE `crimetab_missions` ADD PRIMARY KEY (`id`);
ALTER TABLE `crimetab_players` ADD PRIMARY KEY (`id`);
ALTER TABLE `crimetab_updates` ADD PRIMARY KEY (`id`);
ALTER TABLE `crimetab` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `crimetab_missions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `crimetab_players` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `crimetab_updates` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

Example data:

INSERT INTO `crimetab_missions` (`id`, `name`, `description`, `cost`, `currency`, `action`, `lasttime`, `active`, `waiting`) VALUES (1, 'Preparation for Fleeca Bank #1', 'Prepare accordingly for the attack.', 5, 'OCASH', 'fleeca1', '1689009097', 1, 600);
INSERT INTO `crimetab_updates` (`id`, `name`, `description`, `cost`, `currency`, `action`, `need`) VALUES (1, 'Increasing the limit #1', 'Increases the member limit by 4 additional slots.', 20, 'OCASH', 'peoplelimit', 0), (2, 'Increasing the limit #2', 'Increases the member limit by 6 additional slots.', 30, 'OCASH', 'peoplelimit2', 1);

Step 4 โžก Click on

๐Ÿงพ
๐Ÿ’ป
Config
GitHub - overextended/oxmysql: MySQL resource for FXServer.GitHub
Logo