Installation

Download resource

Download the purchased resource from keymaster - the official site of fivem with purchased resources.

Dependencies

Resource
Download Link

Database

Add the required sql file to your database

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
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;

Items

Items for esx inventory
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ("id_card", "ID Card", 10, 0, 1),
    ("driving_license", "Driving License", 10, 0, 1),
    ("boat_license", "Boat License", 10, 0, 1),
    ("flying_license", "Flying License", 10, 0, 1),
    ("police_badge", "Police Badge", 10, 0, 1),
    ("sheriff_badge", "Sheiff Badge", 10, 0, 1),
    ("fib_badge", "FIB Badge", 10, 0, 1);
Items for qb-inventory / qs-inventory
['id_card'] = {
    ["name"] = 'id_card',
    ["label"] = "ID Card",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "id_card.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
['driving_license'] = {
    ["name"] = 'driving_license',
    ["label"] = "Driving License",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "driving_license.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
['boat_license'] = {
    ["name"] = 'boat_license',
    ["label"] = "Boat License",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "boat_license.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
['flying_license'] = {
    ["name"] = 'flying_license',
    ["label"] = "Flying License",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "flying_license.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
['police_badge'] = {
    ["name"] = 'police_badge',
    ["label"] = "Police Badge",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "police_badge.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
['sheriff_badge'] = {
    ["name"] = 'sheriff_badge',
    ["label"] = "Sheriff Badge",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "sheriff_badge.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
['fib_badge'] = {
    ["name"] = 'fib_badge',
    ["label"] = "FIB Badge",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "fib_badge.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = ""
},
Items for ox_inventory
['id_card'] = {
    label = 'ID Card',
    weight = 5,
    stack = false
},
['driving_license'] = {
    label = 'Driving License',
    weight = 5,
    stack = false
},
['flying_license'] = {
    label = 'Flying License',
    weight = 5,
    stack = false
},
['boat_license'] = {
    label = 'Boat License',
    weight = 5,
    stack = false
},
['weapon_license'] = {
    label = 'Weapon License',
    weight = 5,
    stack = false
},
['police_badge'] = {
    label = 'Police Badge',
    weight = 5,
    stack = false
},
['sheriff_badge'] = {
    label = 'Sheriff Badge',
    weight = 5,
    stack = false
},
['fib_badge'] = {
    label = 'FIB Badge',
    weight = 5,
    stack = false
},

Metadata

Metadata for ox_inventory

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

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

  2. Find function FormatItemInfo

  3. Enter items metadata readout correctly

} else if (itemData.name == "id_card") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(`
        <p><strong>Serial Number: </strong><span>${itemData.info.document_id}</span></p>
        <p><strong>SSN: </strong><span>${itemData.info.ssn}</span></p>
        <p><strong>First Name: </strong><span>${itemData.info.firstName}</span></p>
        <p><strong>Last Name: </strong><span>${itemData.info.lastName}</span></p>
        <p><strong>Birth Date: </strong><span>${itemData.info.dateOfBirth}</span></p>
        <p><strong>Nationality: </strong><span>${itemData.info.nationality}</span></p>
    `)
} else if (
        itemData.name == "driving_license" ||
        itemData.name == "flying_license" ||
        itemData.name == "boat_license" ||
        itemData.name == "police_badge" ||
        itemData.name == "sheriff_badge" ||
        itemData.name == "fib_badge"    
    ) 
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(`
        <p><strong>Serial Number: </strong><span>${itemData.info.document_id}</span></p>
        <p><strong>First Name: </strong><span>${itemData.info.firstName}</span></p>
        <p><strong>Last Name: </strong><span>${itemData.info.lastName}</span></p>
    `)

Last updated