> For the complete documentation index, see [llms.txt](https://l2s.gitbook.io/l2s-dev-documentations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l2s.gitbook.io/l2s-dev-documentations/qbcore/hud/installation.md).

# Installation

### Dependencies

## Asset download

1. **Download your resource from FiveM's Keymaster.**
2. **Unzip zip folder and place it into your resource folder.**&#x20;
3. **Add ensure l2s-Spying to your server start config. Make sure to place anywhere below the framework and dependencies resources.**

## installation

**1- Add this items in shared || qb-core/shared/items.lua**&#x20;

```lua
["gps_device"] = { 
["name"] = "gps_device",  
["label"] = "Spaying Device", 
["weight"] = 500,  
["type"] = "item",  
["image"] = "gps_device.png", 
["unique"] = true,  
["useable"] = true, 
["shouldClose"] = true,  
["combinable"] = nil,   
["description"] = "Special device for monitoring and tracking"
},

["gps_tablet"] = {  
["name"] = "gps_tablet",   
["label"] = "Spaying Tablet",  
["weight"] = 1000,  
["type"] = "item",   
["image"] = "gps_tablet.png", 
["unique"] = true,  
["useable"] = true,  
["shouldClose"] = true, 
["combinable"] = nil,  
["description"] = "data entry tablet device"
},

["note_ip"] = {  
["name"] = "note_ip",  
["label"] = "Contact Informations", 
["weight"] = 400,  ["type"] = "item",  
["image"] = "note_ip.png",  
["unique"] = true,   
["useable"] = false,  
["shouldClose"] = true,   
["combinable"] = nil,  
["description"] = "contact information"
},

["detector"] = { 
["name"] = "detector", 
["label"] = "Detector Device",  
["weight"] = 400,  
["type"] = "item",  
["image"] = "detector.png", 
["unique"] = true, 
["useable"] = false, 
["shouldClose"] = true, 
["combinable"] = nil, 
["description"] = "A device through which you can inspect a persons devices"
},
```

**2- Add images in inventory script || qb-inventory/html/images**

![](/files/7fwj0Hp9U81WfnO3TLLV)![](/files/NyUcq8IFF4QdY021Kwtn)![](/files/AFXXsP54kl73KdSpUTQl)![](/files/8HsbzeS9J7fdjJgyeHGT)

**3- qb-inventory/server/main.lua go to AddItem Function and add this like**  [<mark style="color:blue;">**image**</mark>](https://prnt.sc/AgtAUOqQ9iWN)

```lua
if item == 'gps_device' then
    info.ip = info.ip or math.random(1,9).."."..math.random(1,9).."."..math.random(1,9).."."..math.random(1,9)
    info.password = info.password or math.random(1,9)..math.random(1,9)..math.random(1,9)..math.random(1,9)
end
```

<figure><img src="/files/IZAZaRbWGz8PWNAbA6Qc" alt=""><figcaption><p><a href="https://prnt.sc/AgtAUOqQ9iWN"><mark style="color:blue;"><strong>Link</strong></mark></a></p></figcaption></figure>

4- **qb-inventory/html/app.js || Add items info show in inventory**

{% hint style="warning" %}
**If you use orginal inventory :**&#x20;
{% endhint %}

```javascript
} else if (itemData.name == "gps_device") {
    $(".item-info-title").html('<p>' + itemData.label + '</p>')
    const newLocal = '<p>IP:  ';
    $(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
    $(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
} else if (itemData.name == "note_ip") {
    $(".item-info-title").html('<p>' + itemData.label + '</p>')
    const newLocal = '<p>IP:  ';
    $(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
    $(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
```

**Like This :**&#x20;

<figure><img src="/files/4rCh3UztA0vOVhYWj1N4" alt=""><figcaption><p><a href="https://prnt.sc/prK9vbzlJafu"><mark style="color:blue;"><strong>Link</strong></mark></a></p></figcaption></figure>

5- I**f you use our inventory \[ L2S V4 FILES ]**

```javascript
} else if (itemData.name == "gps_device") {
    $(".f9iteminfoname").html('<p>' + itemData.label + '</p>')
    const newLocal = '<p>IP:  ';
    $(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
    $(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
} else if (itemData.name == "note_ip") {
    $(".f9iteminfoname").html('<p>' + itemData.label + '</p>')
    const newLocal = '<p>IP:  ';
    $(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
    $(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
```

## Finally Customize Your setting in config.lua


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://l2s.gitbook.io/l2s-dev-documentations/qbcore/hud/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
