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

# Configuration

***

#### <mark style="color:$primary;">Framework</mark>

{% hint style="info" %}
Select your framework (by default the script will auto detect)

```lua
Config.Framework = "auto" -- "auto", "qb-core", "qbox"
```
{% endhint %}

***

#### <mark style="color:$primary;">Inventory</mark>

{% hint style="info" %}
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"
```
{% endhint %}

***

#### <mark style="color:$primary;">Target System</mark>

{% hint style="info" %}
The script supports both <mark style="color:blue;">qb-target</mark> and <mark style="color:blue;">ox\_target</mark> to allow the 3rd eye functions within this script.



```
Config.TargetSystem = "auto" -- "auto", "qb-target", "ox_target"
```
{% endhint %}

***

#### <mark style="color:$primary;">Shop</mark>

{% hint style="info" %}
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.\


```lua
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"
    }
}

```
{% endhint %}

***

#### <mark style="color:$primary;">Pickup Locations</mark>

{% hint style="info" %}
To keep your criminals on their toes the script supports multiple pick up locations for your <mark style="color:$success;">fake\_id\_card</mark> 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)
}
```
{% endhint %}

***

#### <mark style="color:$primary;">Using qs-inventory</mark>

{% hint style="info" %}
If you are using <mark style="color:blue;">qs-inventory</mark> you will need to add the following code to <mark style="color:$danger;">qs-inventory -> shared -> items.lua</mark>.



```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'},
```
{% endhint %}

{% hint style="warning" %}
**Items also need to be added to the qb-core -> shared -> items.lua to ensure for compatibility with qs-inventory.**
{% endhint %}

{% hint style="info" %}
To Display Metadata and depending on your version of <mark style="color:blue;">qs-inventory</mark> you will need to add the following snippet below the existing <mark style="color:$success;">id\_card</mark> in this file <mark style="color:$danger;">qs-inventory -> config -> metadata.js</mark>. \


```javascript
        } 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>"
            );
```
{% endhint %}

***

#### <mark style="color:$primary;">Using ox\_intentory</mark>

{% hint style="info" %}
If you are using <mark style="color:blue;">ox\_inventory</mark> you will need to add the following code to <mark style="color:$danger;">ox\_inventory -> data -> items.lua</mark>.\


```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'
        }
    }
}
```


{% endhint %}

***

#### <mark style="color:$primary;">Using qb-core</mark>

{% hint style="info" %}
If you are using <mark style="color:blue;">qb-inventory</mark> you will need to add the following code to <mark style="color:$danger;">qb-core -> shared -> items.lua</mark>.\


```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'},
```
{% endhint %}

***

## <mark style="color:$primary;">Config File before edits</mark>

```lua
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)
}
```
