Configuration

Below we have explained some of the key features found in our Config file within the Fake ID Script.


Framework

Select your framework (by default the script will auto detect)

Config.Framework = "auto" -- "auto", "qb-core", "qbox"

Inventory

If you have an inventory system that is not one of the listed types then this means the script doesn't support

it as of this moment in time.

Config.InventorySystem = 'auto' -- "auto", "qb-inventory", "qs-inventory", "ox_inventory"

Target System

The script supports both qb-target and ox_target to allow the 3rd eye functions within this script.

Config.TargetSystem = "auto" -- "auto", "qb-target", "ox_target"

Shop

The script comes with preconfigured shop and location settings but you can alter these to suite interiors

or locations you would rather have the areas marked as.

Config.Shop = {
    location = vector3(327.16, -1258.44, 32.11),
    heading = 265.99,
    ped = "a_m_m_business_01",
    blip = {
        enabled = true,
        sprite = 52,
        colour = 1,
        scale = 0.8,
        name = "Blank Cards Shop"
    },
    item = {
        name = "blank_id_card",
        label = "Blank ID Card",
        price = 500
    }
}

Config.CreateLocation = {
    location = vector3(335.0, -1294.9, 32.51),
    heading = 153.91,
    ped = "a_m_m_prolhost_01",
    blip = {
        enabled = true,
        sprite = 374,
        colour = 2,
        scale = 0.8,
        name = "Fake ID Creation"
    }
}

Pickup Locations

To keep your criminals on their toes the script supports multiple pick up locations for your fake_id_card to be

collected from. You can keep the default locations or if you want you can add or remove the locations to use

your own.

Config.PickupLocations = {
vector3(364.82, 256.78, 103.0),
vector3(-726.7, 40.86, 44.91),
vector3(-1502.2, 1527.7, 115.25),
vector3(-3193.07, 1229.78, 10.05),
vector3(-1025.07, -2193.41, 9.07),
vector3(1434.18, -2223.99, 60.6),
vector3(1998.34, 3780.01, 32.18),
vector3(446.27, 3566.6, 33.24),
vector3(9.8, 3719.79, 39.55),
vector3(-432.43, 6165.64, 31.48),
vector3(124.13, 6645.23, 31.79)
}

Using qs-inventory

If you are using qs-inventory you will need to add the following code to qs-inventory -> shared -> items.lua.

    ['fake_id_card']                  = {
        ['name'] = 'fake_id_card',
        ['label'] = 'Fake ID Card',
        ['weight'] = 0,
        ['type'] = 'item',
        ['image'] = 'fake_id.png',
        ['unique'] = true,
        ['useable'] = true,
        ['shouldClose'] = true,
        ['combinable'] = nil,
        ['description'] = 'A new ID card'},


    ['blank_id_card']                 = {
    ['name'] = 'blank_id_card',
    ['label'] = 'Blank ID Card',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'fake_id.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A blank ID card'},

To Display Metadata and depending on your version of qs-inventory you will need to add the following snippet below the existing id_card in this file qs-inventory -> config -> metadata.js.

        } else if (itemData.name == "fake_id_card") {
            $(".item-info-title").html("<p>" + `${itemData.info.label || label}` + "</p>");
            $(".item-info-description").html(
                "<p><strong>Fake ID Information:</strong></p>" +
                "<p><strong>Citizen ID: </strong><span>" +
                (itemData.info.citizenid !== undefined ? itemData.info.citizenid : 'Unknown') +
                "</span></p><p><strong>First Name: </strong><span>" +
                (itemData.info.firstname !== undefined ? itemData.info.firstname : 'Unknown') +
                "</span></p><p><strong>Last Name: </strong><span>" +
                (itemData.info.lastname !== undefined ? itemData.info.lastname : 'Unknown') +
                "</span></p><p><strong>Date of Birth: </strong><span>" +
                (itemData.info.dob !== undefined ? itemData.info.dob : 'Unknown') +
                "</span></p><p><strong>Sex: </strong><span>" +
                (itemData.info.sex !== undefined ? itemData.info.sex : 'Unknown') +
                "</span></p><p><strong>Nationality: </strong><span>" +
                (itemData.info.nationality !== undefined ? itemData.info.nationality : 'Unknown') +
                "</span></p>"
            );

Using ox_intentory

If you are using ox_inventory you will need to add the following code to ox_inventory -> data -> items.lua.

items = {
    ['blank_id_card'] = {
        label = 'Blank ID Card',
        weight = 15,
        stack = true,
        close = false,
        description = ''
    },
    ['fake_id_card'] = {
        label = 'Fake ID Card',
        weight = 15,
        stack = false,
        close = true,
        description = '',
        metadata = {
            citizenid = 'UNKNOWN',
            firstname = 'UNKNOWN',
            lastname = 'UNKNOWN',
            dob = 'UNKNOWN',
            sex = 'UNKNOWN',
            nationality = 'UNKNOWN'
        }
    }
}


Using qb-core

If you are using qb-inventory you will need to add the following code to qb-core -> shared -> items.lua.

    ['fake_id_card']                    = {['name'] = 'fake_id_card',                      ['label'] = 'Fake ID Card',              ['weight'] = 0,            ['type'] = 'item',         ['image'] = 'fake_id.png',                 ['unique'] = true,          ['useable'] = true,     ['shouldClose'] = true,       ['combinable'] = nil,   ['description'] = 'A new ID card'},
    ['blank_id_card']                   = {['name'] = 'blank_id_card',                     ['label'] = 'Blank ID Card',             ['weight'] = 0,            ['type'] = 'item',         ['image'] = 'fake_id.png',                 ['unique'] = true,          ['useable'] = true,     ['shouldClose'] = true,       ['combinable'] = nil,   ['description'] = 'A blank ID card'},

Config File before edits

Config = {}

Config.Framework = "auto" -- "auto", "qb-core", "qbox"
Config.InventorySystem = 'auto' -- "auto", "qb-inventory", "qs-inventory", "ox_inventory" --
Config.TargetSystem = "auto" -- "auto", "qb-target", "ox_target" --

Config.Shop = {
    location = vector3(327.16, -1258.44, 32.11),
    heading = 265.99,
    ped = "a_m_m_business_01",
    blip = {
        enabled = true,
        sprite = 52,
        colour = 1,
        scale = 0.8,
        name = "Blank Cards Shop"
    },
    item = {
        name = "blank_id_card",
        label = "Blank ID Card",
        price = 500
    }
}

Config.CreateLocation = {
    location = vector3(335.0, -1294.9, 32.51),
    heading = 153.91,
    ped = "a_m_m_prolhost_01",
    blip = {
        enabled = true,
        sprite = 374,
        colour = 2,
        scale = 0.8,
        name = "Fake ID Creation"
    }
}

Config.PickupProp = "prop_cs_cardbox_01"
Config.PickupBlip = {
    sprite = 478,
    colour = 3,
    scale = 1.0,
    name = "Pickup Location"
}

Config.FakeIDItem = {
    name = "fake_id_card",
    label = "Fake ID Card"
}

Config.PickupAnimation = {
    dict = "pickup_object",
    anim = "pickup_low",
    duration = 2000
}

Config.PickupLocations = {
vector3(364.82, 256.78, 103.0),
vector3(-726.7, 40.86, 44.91),
vector3(-1502.2, 1527.7, 115.25),
vector3(-3193.07, 1229.78, 10.05),
vector3(-1025.07, -2193.41, 9.07),
vector3(1434.18, -2223.99, 60.6),
vector3(1998.34, 3780.01, 32.18),
vector3(446.27, 3566.6, 33.24),
vector3(9.8, 3719.79, 39.55),
vector3(-432.43, 6165.64, 31.48),
vector3(124.13, 6645.23, 31.79)
}

Last updated