THIS IS FOR QBCORE. FOR ESX:
https://reborn.tebex.io/package/5717247

The Reborn Police K9 Player script gives your law enforcement departments an ally in the fight for justice! Players can be hired onto any department to become a K9 companion for officers. These K9s are trained thoroughly and can warn their handlers of danger with different sound bytes and animations as well as abilities to tackle and, if necessary, attack potential criminals. The Reborn Police K9 Player script has many customizable options:
- Customizable K9 commands
- Customizable K9 controls
- Enable/disable a K9 allowlist
- Adjust which jobs can utilize K9s
- Adjustable drug items and status smells that can be searched for
- Customizable K9 models
- Customizable K9 sounds
- Adjustable K9 sound volume
- Enable/disable K9 ability to tackle and attack
- Adjustable K9 attack HP amount and knock-down chance percentage
- Enable/disable K9 self-revive (for emergencies)
- Enable/disable food/water use for K9s
- Customizable K9 food items and props for food/water
- Enable/disable K9 unlimited stamina
Enjoy a fleet of player-controlled K9 officers today!
THIS RESOURCE DOES NOT COME WITH THE POLICE K9 PED. BE SURE TO DOWNLOAD THE FREE PED HERE: https://reborn.tebex.io/package/5635440
This script is escrowed and only allows adjustments of the configuration file.
How To Use:
1) Open config.lua and adjust to your liking
2) Once a player is on-duty as police or whichever job you've assigned they can run /k9 and become a K9
Installation:
1) Copy "interact-sound" folder to [standalone] folder
2) Copy "qb-inventory" folder to [qb] folder
3) Add K9 food/water items to QB shared/items.lua
4) Place K9 food/water items for sale wherever you'd like
Questions:
Q: How do I start?
A: Go through the config file and adjust all options you'd like. Also include the Rockstar or FiveM license number for users you'd like to allowlist for K9 duty.
Q: How does someone become a K9?
A: Players must be allowlisted first and foremost. They must also be hired onto a K9-enabled job (police by default) and on duty. Then they can use /k9 and become a K9 companion.
Q: What are the default controls for the K9?
A: You can find these in the config file and adjust them as needed. Players can customize their own keybinds as well through the FiveM settings menu.
Q: How do I get food/water for my K9?
A: If K9 food is enabled, be sure to add the food and water items into your qb-inventory and provide a place for people to acquire them. Anyone can use a food or water bowl item and K9s can use 3rd eye to use them.
Q: How many K9s can be out at once?
A: As many as you'd like!
Q: Help, I'm stuck as a K9!
A: Most players would most likely have a dedicated character for a K9, however, you can try /refreshskin or /reloadskin to get yourself back on two feet.
Video:
Dependencies: QBCore, interact-sound, QB-Target or ox_target (for dog food/water)
Supported Frameworks: QBCore only
Current Release: 1.5
Updates:
- v1.0 - Initial release
- v1.1 (8/11/2023) - Added multiple custom config variables for controls, vehicle seats and animations
- v1.11 (9/7/2023) - Added older QBCore compatibility and QBCore translation locales
- v1.12 (9/18/2023) - Added ability to spawn without changing model to allow other custom models on the fly (Config.K9Model "none")
- v1.13 (10/1/2023) - Fixed InteractSound call to play for all clients
- v1.3 (10/26/2023) - Fixed issue with Vests, added customizable times for Food, Water, Search and Sniff functions, added ability to customize event/export for K9 Revive, fixed issue with attack animations, added ability to use ox_target
- v1.4 (12/7/2023) - Added Config option to extend distance checks for attacking/tackling to help with desync issues
- v1.44 (2/8/2024) - Added Config option to disable job checks to allow a player to become a K9 at any time
- v1.45 (3/27/2024) - Added Config option to disable job duty checks to allow player to become a K9 at any time
- v1.5 (6/4/2024) - Added K9 Permission system to adjust per model Config options (Attack, Attack Chance, Attack HP, Search and Sniff)
- v1.51 (1/10/2025) - Added "remote" ability to push K9 out of vehicle while in or out of the vehicle (2 new config options)
- v1.52 (2/2/2025) - Fixed issue with finding players on QB version. Added ability to sniff vehicle trunks. Fixed progress bar timers.