[FREE/QB-Core] Advanced QB-Police K9

:rotating_light: QB-Core Police K9 Script :dog:

:floppy_disk: 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 :round_pushpin: and command it with ease.

Features:

  • :dog2: Spawn a customizable K9 (e.g., Husky) that follows, barks, and attacks on command.
  • :man_walking: Smart follow mechanics with teleportation if the dog gets stuck or too far.
  • :crossed_swords: Attack queue system: Order your K9 to engage targets, with automatic handling of dead or distant enemies.
  • :stop_sign: Toggle wait mode (sitting with godmode) or recall your K9 with a keybind (O by default).
  • :hospital: Auto health regeneration for the dog when not in combat.
  • :house: Optional shelter system: Dogs walk to/from a shelter for immersive spawning/despawning.
  • :dart: QB-Target integration for seamless interactions (bark, attack, wait).
  • :skull: Death detection ensures the K9 is removed if critically injured, with a notification to grab a new one.
  • :oncoming_automobile: 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! :paw_prints:

:handbag: I“m currently working on:

  • :mag_right: Searching People

Dependencies:

  • QB-Core
  • QB-Target
  • QB-Menu

Using OX_Lib:

  • QB-Core
  • ox_lib
  • ox_target
  • QB-Menu

Latest Version: 1.1.1

Get it on Github and enhance your server’s RP! :police_car:

Github Links

Github.com Repo (Not the latest Code)
Latest Release

Other Links

Preview on YouTube
Discord (Working Progress)

Support/Bug-Report Yes (On Github or Discord)
Code Public Yes (On Github)
2 Likes

preview?

1 Like

I will make one today or tomorrow.
Best regards,
empfi

Cool Release Does it allow k9 to sit in a vehicle?

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!

1 Like

Yeah thats simple.
But I think respawning/despawning him is a better option, so its also safer to drive (so you do not drive it over)

I am not sure, if that is possible tbh.
I think it would look wierd and some Peds are maybe not able to do that.
Ill try to resolve it with this.

Thanks for your question.

Oh even better! By the way, is it expected to be able to issue the wait/stay command without keybinding?

Also, it’s not quite clear how to tell the dog to bark or attack.

Appreciate it :slight_smile:

Thanks for your reply.

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! :blush:

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.

I can check, if a implementation for ox-target is simple, maybe I can do it.

1 Like

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.

Also, I added the support now.
Its on Github. (Could have some Bugs its build on the same, but I am not sure if I messed something up)

I can’t wait to try it. Thank you so very much :slight_smile:

1 Like

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.

I“ll go to sleep now.
Have a great night.

1 Like

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….

added mine is reddron007