Installation

1. Download Resource

Download the purchased resource from CFX Portal - the official site of FiveM with purchased resources.


2. Install Required Dependencies

This script needs a few extra resources to work properly. Below you will find a list of things to download - click the link, download and upload to your server just like other resources.

Resource
Download Link

3. Import Database Tables

This is a very important step - without it, the script will not work properly. Depending on the framework you are using (ESX or QB-Core), select the appropriate section below and Paste the SQL code into your database.

Not sure how to do it?

Database for ESX
ALTER TABLE `users` ADD COLUMN `ssn` varchar(16) DEFAULT NULL;

CREATE TABLE IF NOT EXISTS `player_documents` (
  `serial_number` varchar(50) NOT NULL DEFAULT '',
  `owner` varchar(80) DEFAULT NULL,
  `type` varchar(80) DEFAULT NULL,
  `photo` longtext DEFAULT NULL,
  `valid` tinyint(4) DEFAULT 1,
  `for_pickup` tinyint(4) DEFAULT 0,
  PRIMARY KEY (`serial_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
Database for QB-Core

4. Add Required Items

The script uses its own items. Depending on what inventory you are using, select the appropriate section and add these items to either your item file or database.

Items for esx inventory
Items for ox_inventory
Items for qb-inventory / qs-inventory / origen_inventory

5. Adjust Metadatas for Inventory

This script uses item metadata to store additional information. To make this data visible directly in your inventory UI, you need to add the code snippet below to your inventory configuration.

Metadata for ox_inventory

Customizable at the very bottom of the config.client.lua file

Metadata for old qb-inventory
  1. Go to qb-inventory/html/js/app.js

  2. Find function FormatItemInfo

  3. Enter items metadata readout correctly

Metadata for qs-inventory
  1. Go to qs-inventory/config/metadata.js

  2. Find function FormatItemInfo

  3. Enter items metadata readout correctly

Metadata for origen_inventory
  1. Go to origen_inventory/html/js/items.js

  2. Find driver_license and remove the entire displayMeta function.

  3. Find id_card and replace the entire function displayMeta responsible for id_card.

  1. Register new documents


6. Additional Integrations

1

Automatic SSN generation in your framework

Read the guide here


7. Start Resource

To start a resource in your server.cfg, ensure that it begins after your framework has been initiated. For instance, if you are using a framework like es_extended, you should start resource after it, like so:

Ensure there are no syntax errors or incorrect paths in your server.cfg.

Last updated

Was this helpful?