[Release] Original Police K9 [Updated]

Update 1.3
Updated to Latest FX Version
New:

  • Ace Permissions are not toggleable
  • Default english commands
Changelog

Update 1.3
New:
Updated to Latest FX Version

  • Ace Permissions are not toggleable
  • Default english commands

Update 1.2
New:

  • Standalone setting (This will disable ESX functions)
    – For those that want to be able to have items displayed when searching I send out an event to both client and server after the dog searches. Just intercept “K9:Export:SearchVehicle” or “K9:Export:SearchPlayer”.

  • Ability to change key modifier for attacking (You still have to be aiming at a target)

  • Ability to change messages

  • Ability to change commands

  • All of this is mainly for language support

Update 1.1
Added config file. (Do not remove any key variables, only change the values of them. It allows for empty arrays.)
New:

  • Change detected items.
  • Detect guns from the list in the config
  • Change job grade

Update 1.0
Released Script

Only if standalone is disabled:

Requirements
  • es_extended
  • esx_inventoryhud
  • esx_inventoryhud_glovebox
  • esx_inventoryhud_trunk

Example of adding permission for standalone:

add_ace group.admin k9 allow
add_principal identifier.steam:000000 group.admin

You need a job with (grade_name = k9) lowercase k (You can change this in the config.json)

Commands (You can change these in the config.json):

/k9 spawn {rott, husky, retriever, shepherd}
/k9 delete
/k9 follow
/k9 stay
/k9 attack (You can also attack if you “Aim + Left Ctrl”)
/k9 search {vehicle, player}
/k9 enter (Enters vehicle)
/k9 exit (Exits vehicle).

Dog Breeds:
1: Rottweiler (Attacks on attack command)
2: Husky (Follows on attack command)
3: Retriever (Follows on attack command)
4: Shepherd (Attacks on attack command)

If you guys want a standalone script that doesn’t require ESX let me know. It just won’t have search functions or permissions.

Note: Right now the dog sits in the front passenger seat, this is due to many servers not having a dedicated K9 vehicle. You can easily change this within the code though. Or just request it enough and I will make a config.

Report any bugs please! I would like to make this nearly flawless.

Source
Download

To add within the ESX police menu try this:

ESX Menu Code
16 Likes

Looks like a fairly cool script but mind posting a video or some images? Sorta bland without that.

1 Like

Be my guest if you would like to post any videos. Pictures would just be of the dog.

Ill link any good video in the main post if you want views lol.

we just tried it. dog wont attack me when we tested it

esx_inventoryhud_glove is esx_inventoryhud_glovebox?correct

Good release but the usage is taking long F6 menu like LSPD would help :+1:

good job man thank you for sharing

No, glovebox is it’s own resource.

Which dog were you using?

Thinking about a menu. I will see what I can do.

1 Like

Dog didnt attack me when we tested it.

Make sure you don’t use everyone ignores player otherwise animals will ignore

Maybe you could make it so the job grade name is police and the label name is k9 because if do the job grade name k9 and the job k9 police are un able to use the police menu’s unless build a whole new police job ect. :slight_smile:

this is a great idea!!!

1 Like

can use it without inventoryhud? I hate inventoryhud

Your doing something wrong cause I can use this just fine with the police job menu :slightly_smiling_face:

1 Like

You don’t make a new job with this you add extra rank called k9 for the police job in the SQL

2 Likes

What does the vehicle search do? Does it actually know if theres drugs or guns in the car inventory or is it just random?

Currently it checks a list of drugs that I just now remember are probably only in PassionRP so with they being said I will release an update soon so you guys can add detected items.

Update 1.1
Added config file. (Do not remove any key variables, only change the values of them. It allows for empty arrays.)
New:

  • Change detected items.
  • Detect guns from the list in the config
  • Change job grade