RQ-Dogs
  • DOCUMENTATION
    • Welcome
    • Commands
    • Common Issues
    • Inventory Setup
  • 🐶Script Configuration
    • Framework Configuration
    • Dog Access Configuration
    • Notification Configuration
    • Tracking Configuration
    • Searching Configuration
    • Ped Configuration
    • GPS Configuration
    • Miscellaneous Configuration
    • Vehicle Configuration
Powered by GitBook
On this page
  • Shared.EnableVehicleSearching
  • Shared.EnablePlayerSearching
  • Shared.EnableDropSearching
  • Shared.DropSearchingRadius
  • Shared.SearchAllDrops
  • Shared.UseOldQBInventory
  • Shared.UseOxInventory
  • Shared.AlertAnimationLength
  • Shared.SearchItems
  1. Script Configuration

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.

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.

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.

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.

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.

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.

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.

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.

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.

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",
}
PreviousTracking ConfigurationNextPed Configuration

Last updated 5 months ago

🐶