K9 Script System – Version 2: Enhance Your Roleplay Experience
We’re thrilled to introduce the K9 Script System – Version 2! This revolutionary script is designed to elevate your FiveM roleplay experience, offering advanced features, deep interaction, and immersive gameplay with your K9 companion. Whether you’re running a law enforcement server or simply adding more depth to your RP, this script is a must-have!
Features
- Supports QBCORE and ESX.
- Compatible with oxtarget, qb-target, or your custom target system.
- Standalone Functionality: No additional scripts required.
- Fully configurable and optimized (0.00–0.02 ms).
- Custom 3D models for dog houses and cages.
- Dynamic UI for managing K9 attributes.
- Advanced K9 Abilities:
- Sniffing out drugs and contraband.
- Tracking suspects and players.
- Searching vehicles and areas.
- Interactive Training System:
- Train your dog to improve skills over time.
- Custom animations for training and commands.
- Unique Actions:
- Ride On, Leash Control, Area Search, and more!
- Supports OneSync and OneSync Infinity.
Script Details
Feature |
Details |
Code Accessibility |
30% |
Subscription-based |
No |
Lines of Code |
+5000 |
Requirements |
QB-Core/ESX |
Support |
Yes |
4 Likes
This script is amazing, really am in love with it!
But to be dead honest, there is room or even need for improvements.
There are some (nasty) issues with this script.
- Placement of custom dog houses (lineup and spawning the dog, the dog gets stuck 90% of the time inside the doghouse).
- Camera of the dog is very clunky, therefor you don’t see the preview of the dog.
- Duplication issues with the dog-kennel from the inventory (qb-inventory).
- If someone (hard)crashes (with the dog in their inventory), they loose their dog.
- The UI should be made more compact, it’s really HUGE on some resolutions.
- Don’t use SVG files, use icon assets (make the entire resource less cumbersome), but also makes it more adjustable and versatile.
- There is no way to add another job besides “police” (if I’m not mistaken, correct me if I’m wrong). We personally use qb-core and multiple “leo” jobs, but the script only works with the “police” job.
- K9 when placed inside of a car, will not disembark and gets stuck inside the car when called.
We will be supporting this script and the EVO developers non-the-less!
Really amazing work guys!
Keep up the good work.
What about the ability for the K9 to be commanded to Attack a fleeing suspect?
Dear OfficeMills
Our script supports dog attacking it uses two different ways to attack suspect.
Thank you for your feedback! We’re really happy you like the script, and we appreciate your suggestions to make it even better. Let me answer your points one by one:
-
Dog House and Dog Getting Stuck
We’ll fix the problem where the dog gets stuck in the house. This will be updated soon.
-
Camera Problems
You can change the camera settings yourself in the config file. Here’s an example:
['policeDept'] = {
Coords = vector3(642.49, 8.12, 82.79),
Heading = 72.32,
cameraDistance = -8.0, -- How far the camera is from the dog
cameraHeight = 1.0, -- How high the camera is
dogSpawnDistance = 2.0, -- Where the dog spawns (0.0 is inside the house)
FOV = 20.0, -- Field of view
house = "evok9_doghouse-p-a" -- Object name
},
You can adjust these numbers to match what you want. If you need help, let us know.
-
Inventory Duplication Problem
I didn’t fully understand the duplication issue. If you explain it a bit more, we’ll help you fix it.
-
Losing Dog After Crash
If a player crashes, they can place the dog in a cage before it happens. This way, they can spawn the dog later without losing it. Let us know if this doesn’t work for you.
-
Big UI and SVG Icons
We’ll make the UI smaller and easier to use on all screens. We’ll also look at replacing SVGs with icon files to make the script lighter and easier to customize.
-
Adding Jobs for K9
You can add more jobs by editing the target.lua
file. If you need something more advanced, you can create your own event in function.lua
to check for specific jobs before running the main event.
-
K9 Stuck in Cars
I didn’t fully understand this issue. If you can explain what happens, we’ll fix it.