Police K9 Script is a project originally forked from hashisx's repository, and later from FjamZoo's repository
Thanks to Boom's Repository, support has been added for the sandbox framework.
-
Download ox_lib
Make sure you have ox_lib installed ox_lib. -
Download the K9 Ped Asset
The K9 Ped used in this script is a custom model. You can download the model from the Cfx.re forum. -
Add to Server Files
Place themythic-k9folder into your server's resource directory. -
Configure Resources
Start the script by adding the following line to yourresources.cfgfile:start mythic-k9
This script allows you to retrieve a police dog, and then use it to follow or attack targets. The dog will only attack when you are pointing a weapon. In addition, it lets you make the dog sit, stand, lay down, search players, vehicles, and areas. You can also put the dog in a vehicle.
-
Retrieve a Dog:
Retrieve a dog from the location specified in the configuration file. -
Keybind Setup:
- Bind your preferred key in the configuration file, or set it in-game through your settings.
- Use your defined keybind to open the K9 commands menu, which lets you choose to attack a player, follow a player, make the dog sit, stand, lay down, search players, vehicles, and areas. You can also put the dog in a vehicle.
-
Attacking:
Make sure you are pointing a weapon at a player when you press the attack keybind.
If you experience any issues or bugs, contact me on discord through the AutLaaw's Development Discord.