# Installation Guide: Impound System

### Installation <a href="#installation" id="installation"></a>

### Radial Menu Part

### qb-radialmenu

add this to under the police Line  569

```
       {
            id = 'impound',
            title = 'Impound',
            icon = 'user-lock',
            type = 'client',
            event = 'J0-Impound:OpenImpoundMenu',
            shouldClose = true
        },
```

after adding it will look like this&#x20;

<figure><img src="/files/9BYGm6iLtCOBx0BWogJW" alt=""><figcaption></figcaption></figure>

### qbx\_radialmenu

add this to Line219

```
            {
                id = 'impound',
                icon = 'user-lock',
                label = 'Impound',
                event = 'J0-Impound:OpenImpoundMenu',
            },
```

after adding it will look like this&#x20;

<figure><img src="/files/7rR9OvV685S51EulW88K" alt=""><figcaption><p>qbx_radialmenu</p></figcaption></figure>

### Inventory part

### qb-inventory

qb-core/shared/items.lua

```
jomidarcam = {
    name = 'jomidarcam',
    label = 'Camera',
    weight = 1000,
    type = 'item',
    image = 'camera.png',
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Camera'
},
```

INVENTORY IMAGE

```
copy the camera.png from J0-Impound/installme/icons/camera.png
paste qb-inventory/html/images/
```

### ox\_inventory

ox\_inventory/data/items.lua

```
['jomidarcam'] = {
    label = 'Camera',
    weight = 1000,
    client = {
        image = 'camera.png',
        export = 'God-Impound.useCam'
    },
},
```

INVENTORY IMAGE

```
copy the camera.png from J0-Impound/installme/icons/camera.png
paste ox_inventory/web/images/ 
```

### Sql Part

```
CREATE TABLE IF NOT EXISTS `impound_vehicles` (
  `plate` varchar(15) NOT NULL,
  `image` text DEFAULT NULL,
  `polname` text DEFAULT NULL,
  `impoundDays` int(11) DEFAULT NULL,
  `lawId` int(11) DEFAULT NULL,
  `impoundUntil` datetime DEFAULT NULL,
  PRIMARY KEY (`plate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
```

{% hint style="info" %}
Copy and run the sql by using  **heidisql**  or you can import by using phpmyadmin
{% endhint %}

### Config Part

open shared/config.lua

```
J0 = {}

-- Options: "QBCore" for qb-core framework, "ESX" for es_extended framework, or "Qbox" for qbox_core framework
J0.Core = "QBCore"

-- Options: "ox_target", "qb-target", or "interact" (depending on your targeting method setup)
J0.Target = "interact"

-- Enter Your Police Job Name Here
J0.PolJobName = "police"

-- Coordinates where the impound ped will spawn
J0.ImpoundPedCoords = vector4(395.17, -1629.32, 28.29, 62.32)

-- Coordinates where vehicles will be spawned at the impound lot
J0.VehicleSpawnCoords = {
    {id = 1, x = 401.35, y = -1618.97, z = 28.29, rotation = 48.01},
    {id = 2, x = 403.45, y = -1617.11, z = 28.29, rotation = 58.05}
}

-- Reasons for vehicle impoundment ("laws") Each law has an id, a title (brief description), and a description (detailed explanation of the reason)
-- You can add as many laws you want
J0.Laws = {
    {id = 1, title = "Inoperable on a scene", description = "Vehicle found on scene in an inoperable state."},
    {id = 2, title = "Unpaid Asset Fees", description = "This vehicle has been flagged as they have not paid their asset fees."},
    {id = 3, title = "Vehicle Scuff", description = "Vehicle in an unrecoverable state."},
    {id = 4, title = "Joyride", description = "Vehicle stolen and driven without owner permission."},
    {id = 5, title = "Evading", description = "Vehicle used to flee from a Peace Officer."},
    {id = 6, title = "Reckless Evading", description = "Driven carelessly with gross disregard for human life."},
    {id = 7, title = "Robbery or Kidnapping", description = "Vehicle was used in the commission of any robbery or kidnapping-related offense."},
    {id = 8, title = "Violent Felony", description = "Used in the commission of violent crime either in a drive-by shooting or for transport to and from the scene of a violent crime."},
    {id = 9, title = "Parking Violation", description = "Vehicle parked in a restricted or unauthorized place."},
    {id = 10, title = "Street Racing", description = "Vehicle was used in a speed contest on a public road/highway."},
    {id = 11, title = "Used in a Felony Otherwise Not Listed", description = "Used in any felony not listed by other charges."}
}

-- Options:
--   "DC" = Discord webhook (for Discord-based logging)
--   "FM" = FivemManage Image API Key (logs images using FivemManage's system)
J0.ImageLogService = "FM"

-- API key for the FivemManage/Discord Image Logging service
-- Replace this with your actual API/Webhook key if using FivemManage/Discord for image logging
J0.ImageLogs = "TvrXwUlobmfoVFLYJxslwntCpOyxryDC"
```

{% hint style="info" %}
Framework = qb-core , esx , qbox
{% endhint %}

{% hint style="info" %}
Target = qb-target , ox\_target , interact
{% endhint %}

{% hint style="info" %}
Image Logging Service = Discord Webhook , Fivem Manage Image Api
{% endhint %}

{% hint style="info" %}
You can add more laws
{% endhint %}

### Dependencies

{% embed url="<https://github.com/overextended/ox_lib>" %}


---

# Agent Instructions: 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://god-studios.gitbook.io/god-studios/god-impound-system/installation-guide-impound-system.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.
