# Citizen Search

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FiQhMasSJMBoyE9VFMlAo%2Fimage.png?alt=media&#x26;token=68ff2bc2-0e42-4d8c-bd5c-7aa4b310a1db" alt=""><figcaption></figcaption></figure>

We are going to divide this part into 10 different parts: citizen info, search & capture, dangerous, notes, fines, reports, licenses, weapons, vehicles and properties.

## Citizen Info

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FXoYTfhBiqrWKacsxytyG%2Fimage.png?alt=media&#x26;token=59806a69-35d7-4b30-a7de-0707cc9a4ef5" alt=""><figcaption></figcaption></figure>

Here you can see info like name, lastname, gender, nationality, birthdate, id(player identifier), phone number, bank account number and the job.

Some servers can get `XXXXXXXXX` in some fields because the script can't find that citizen information, here you can take a look where to find the code to change the way to get that missing fields:

**Nationality:** `custom/server/menu/nationality.lua`\
**Phone Number:** `custom/server/menu/phone.lua`\
**Bank Account Number:** `custom/server/menu/bank.lua`

## Search capture & Dangerous

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FuHhptiXa7g4z4GkBlNvF%2Fimage.png?alt=media&#x26;token=e3debf19-e707-4c0c-a997-f51fe1d1a31d" alt=""><figcaption></figcaption></figure>

Those checks are only information available so that the police can know more information about the player.

## Notes

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FhK75shrHFwuNVjv5iMnr%2Fimage.png?alt=media&#x26;token=b411c2a8-3360-49f8-98e3-3267332a9596" alt=""><figcaption></figcaption></figure>

Here each job can attach notes with relevant citizen information. Notes can be pinned and will stand out due to their purple color.

## Fines

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FIZMJMAqcfbUedJIOfngf%2Fimage.png?alt=media&#x26;token=745204ea-1309-431b-ac5f-39d370fe6c4d" alt=""><figcaption></figcaption></figure>

Here all the fines that the citizen has received will be shown, the agent can delete the fine and add more fines.

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2Fuzs4o4vqllJ0K3JGKbg9%2Fimage.png?alt=media&#x26;token=e3193df3-cdba-44c6-b34e-42f44603a818" alt=""><figcaption></figcaption></figure>

## Reports

All the criminal code registered here will be listed [here](https://docs.origennetwork.store/origen-police/guide-of-use/police-cad/criminal-code). You can also add a personalized fine to the citizen.

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FH1TV4w9NWg9FYIqXjIkT%2Fimage.png?alt=media&#x26;token=73fcfc91-eaac-4a4d-8f2b-1c1b26394ae4" alt=""><figcaption></figcaption></figure>

You can directly access the report by clicking on the list of reports that are related to this citizen.

## Licenses & Weapons

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FsHVNH1PsLPvJtkeMuyJJ%2Fimage.png?alt=media&#x26;token=5d2ff18b-a764-4984-8510-5e40a7f2a70b" alt=""><figcaption></figcaption></figure>

The user's licenses and weapons registered in the player's inventory will be displayed here. You can add licenses to the player. Below we will list the files to modify access to this data:\
**Licenses:** `custom/server/menu/licenses.lua`\
**Weapons:** `custom/server/menu/weapons.lua`\
You can make some weapons not be displayed in the list by modifying the `Config.BlackListedUsersWeapons` option in `config/evidences.lua`, example:

```lua
Config.BlackListedUsersWeapons = { -- The list of weapons that will not be listed in the citizen profile
    "WEAPON_STUNGUN",
    "WEAPON_FLAREGUN",
    "WEAPON_FIREEXTINGUISHER",
}
```

## Vehicles

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2F0me6D69o6MWuNLaciqbx%2Fimage.png?alt=media&#x26;token=60d8d706-22ec-42bc-9611-c7960a9aef81" alt=""><figcaption></figcaption></figure>

The list of all the vehicles that the citizen has is displayed along with all the license plates of all the cars.\
You can modify the logic for obtaining this data in this file: `custom/serrver/menu/vehicles.lua`\
Most addon vehicles do not have a label set in the game files `NULL`, therefore we have created some options to create labels for each vehicle in `config/vehicles.lua` -> `Config.CustomCarLabels`

```lua
Config.CustomCarLabels = { -- A list for custom vehicle labels, for the citizen search only will take this label if the vehicle label is NULL
    [GetHashKey("police")] = "POLICE PATROL",
    [GetHashKey("police2")] = "POLICE PATROL 2",
    [GetHashKey("police3")] = "POLICE PATROL 3",
}
```

In this example the label of the vehicles police, police2, police3 has been changed, you should do this with all the addon cars you have.

## Properties

<figure><img src="https://3936778620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLI7NdIesJTaEUHH6a2U%2Fuploads%2FeEi4breyFhvqWykqm5W1%2Fimage.png?alt=media&#x26;token=25bb28cd-5210-4337-b1d5-0cc5d2118fae" alt=""><figcaption></figcaption></figure>

The list of all the properties that the citizen has, you can modify logic to get this data here: `custom/server/menu/propiertes.lua`
