> For the complete documentation index, see [llms.txt](https://rqver-resources.gitbook.io/rq-dogs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rqver-resources.gitbook.io/rq-dogs/script-configuration/searching-configuration.md).

# Searching Configuration

## Shared.EnableVehicleSearching

Whether or not the VEHICLE argument can be used on the `dsearch` command. This calls the `vehicleHasItem` function in `server/sv_open.lua`.

```lua
Shared.EnableVehicleSearching = true -- Whether or not the vehicle searching system should be enabled. (Supports ox_inventory, qb-inventory & Custom Logic) (Available in sv_open)
```

## Shared.EnablePlayerSearching

Whether or not the PLAYER argument can be used on the `dsearch` command. This calls the `playerHasItem` function in `server/sv_open.lua`.

```lua
Shared.EnablePlayerSearching = true -- Whether or not the player searching system should be enabled. (Supports ox_inventory, qb-inventory, ESX, & Custom logic) (Available in sv_open)
```

## Shared.EnableDropSearching

Whether or not the DROP argument can be used on the `dsearch` command. This is used to search for nearby dropped items, and only supports qb-inventory without modifying the `findDrop` function in `server/sv_open.lua`.&#x20;

```lua
Shared.EnableDropSearching = true -- Whether or not to enable searching for the closest dropped item on the ground. (Supports qb_inventory & Custom Logic) (Available in sv_open)
```

## Shared.DropSearchingRadius

The radius from the player's coordinates to search for dropped items in, only relevant if the above `Shared.EnableDropSearching` is true. Radius is in GTA Units - roughly meters.&#x20;

```lua
Shared.DropSearchingRadius = 150.0 -- The radius from the player's coordinates to look for dropped items within.
```

## Shared.SearchAllDrops

Whether or not to search for ALL dropped items. If this is false, the dog will only search for drops that contain an item from `Shared.SearchItems` below.

```lua
Shared.SearchAllDrops = true -- If true, the dog will detect all dropped items. If false, it will only detect dropped items that include an item in Shared.SearchItems.
```

## Shared.UseOldQBInventory

Whether or not you are using a 1.X.X version of QB-Inventory. Version 2.0.0 was released in May of 2024 and is supported by default.

```lua
Shared.UseOldQBInventory = false -- Backwards compatibility with old versions of qb-inventory. If this is true, you must have added the old snippet to qb-inventory, as per the documentation.
```

## Shared.UseOxInventory

Whether or not to prioritize ox\_inventory exports over the inventory from your specified framework.

```lua
Shared.UseOxInventory = true -- Whether or not you use ox_inventory (Will use inventory exports instead of framework exports) (Available in sv_open)
```

## Shared.AlertAnimationLength

The length of the animation in milliseconds of the alert animation that the dog will perform after they find something while searching a player/vehicle.&#x20;

```lua
Shared.AlertAnimationLength = 3500 -- The length (in ms) of the alert animation after finding something during a search
```

## Shared.SearchItems

The list of items that must be on a player or in a vehicle for the dog to alert on the player/vehicle. This list is also used if the above `Shared.SearchAllDrops` is false.

```lua
Shared.SearchItems = { -- A vehicle/person must have one of these items in/on it/them in order for the dog to alert at it/them.
    "weapon_pistol",
    "joint",
}
```
