All interactions with Players or the Dog are made with QB-Target!
Unleash the ultimate K9 experience for your FiveM server! This QB-Core based script brings a fully interactive police dog system to your roleplay. Officers with the right job and rank (configurable, e.g., 3+) can collect a loyal K9 from a designated station and command it with ease.
Features:
Spawn a customizable K9 (e.g., Husky) that follows, barks, and attacks on command.
Smart follow mechanics with teleportation if the dog gets stuck or too far.
Attack queue system: Order your K9 to engage targets, with automatic handling of dead or distant enemies.
Toggle wait mode (sitting with godmode) or recall your K9 with a keybind (O by default).
Auto health regeneration for the dog when not in combat.
Optional shelter system: Dogs walk to/from a shelter for immersive spawning/despawning.
QB-Target integration for seamless interactions (bark, attack, wait).
Death detection ensures the K9 is removed if critically injured, with a notification to grab a new one.
Driving Buddy: The Dog gets in your car!
Perfect for police RP servers looking to add a dynamic and immersive K9 unit! Fully configurable via config.lua to match your serverās needs. Try it now and let your officers patrol with their four-legged partner!
Is there a way to make the dog at least invisible if the officer is in a car? Having him run behind the car is a bit immersion breaking, not to mention he ran under a wheel when reversing out. Great start, excited to use this!
I edited the Code, and now the dog will despawn and respawn if you sit in a vehicle.
Also I updated the Description to say, that all actions are made with QB-Target, I had that standing on GitHub already, but not here.
I canĀ“t find the issue with the commands, and they are also not in my code, so I am not sure what you meant by that, I can only find the command āwaitā and that one is not in/from my code.
If you have the option too, maybe you could test it with some other People and look how the system is working. I would really appreciate that.
Sorry btw, if my English isnt the best!
Thanks for your Bug-reports and your reviews. At the time your reading this, the new release is already on Github, if you want to check it out.
This is amazing - K9 stored while in vehicle. Get back out and there he is. Thatās a lovely change and so fast. Thank you.
I missed the qb-target notice. I have ox-target and while itās the version that still supports qb-core thatās why i canāt issue the commands. I need to try to remember what required ox-target and see if I can get rid of it.
other k9 scripts have them warp into the car so it looks like k9 is in the back for a more immersive feel. just wanted to know if you were going to add that to this one cause it would fit nicely
Okey. Yeah I understand. If you want to add me on Discord āempfiiā, iĀ“ll do a Version for you with the Vehicle sitting, I am not sure, if I want to add that to a full Release.
You will just need to turn it on in the settings and start ox_lib and ox_target with your server.
Just saying this because while testing I had some errors if I did not start it with the server.
Thank you very much. Still having issues but it may be my fault for using ox_target. Iāll go back to the drawing board on my end and rip out ox_target tonight.
I could help you, if you want to.
You could come in the Discord thatās linked above and iāll help you with it.
Like ox_target is better then qb tbhā¦.