[Release] K9 Script [REMOVED]

can u send a example on how to add it ?

I added it and it seemed to work ok, except if you try to name the dog it stops working and the mouse seems to detach from the game and become unusable

Not really sure how you ran into that issue XD.

Why don’t you send me how you did it…

K9Config = {}
K9Config = setmetatable(K9Config, {})

K9Config.OpenMenuIdentifierRestriction = false
K9Config.OpenMenuPedRestriction = true
K9Config.LicenseIdentifiers = {
	"license:c06fbf1faaf995c7b9e207ef77712971a3ed4dc3"
}
K9Config.SteamIdentifiers = {
	"steam:1100001081f9ab0"
}
K9Config.PedsList = {
	-- Police --
	"s_m_y_cop_01",
	"s_m_y_sheriff_01"
	-- Highway -- 
	"s_m_y_hwaycop_01",
	
}

-- Restricts the dog to getting into certain vehicles
K9Config.VehicleRestriction = false
K9Config.VehiclesList = {
	
}

-- Searching Type ( RANDOM [AVAILABLE] | VRP [NOT AVAILABLE] | ESX [NOT AVAILABLE] )
K9Config.SearchType = "Random"
K9Config.OpenDoorsOnSearch = false

-- Used for Random Search Type --
K9Config.Items = {
	{item = "Cocaine", illegal = true},
	{item = "Marijuana", illegal = true},
	{item = "Blunt Spray", illegal = false},
	{item = "Crowbar", illegal = false},
	{item = "Lockpicks", illegal = false},
	{item = "Baggies", illegal = false},
	{item = "Used Needle", illegal = false},
	{item = "Open Container", illegal = false},
}

-- Language --
K9Config.LanguageChoice = "English"
K9Config.Languages = {
	["English"] = {
		follow = "Come",
		stop = "Heel",
		attack = "Bite",
		enter = "In",
		exit = "Out"
	}
}
K9Config.PedsList = {
	-- Police --
	"s_m_y_cop_01",
	"s_m_y_sheriff_01",
	-- Highway -- 
	"s_m_y_hwaycop_01"
	
}

You didn’t put a comma in there.

Hey have a question, For some reason lately the k9 search script will not show the log or what it finds in the vehicle in the chat log? I am running the ESX Framework

It should be a notification. Not a chat message.

Any chance you can explain to me how to get white listed to use the k-9 bottom left corner of the pic you will see it says im not whitelisted

Put your steam or license key in the config or turn it off…

That did help thank you very much ive been goignt hrought the command and i dont know how to activiat bite is their a /bite ive also did the whole point my finger + g it didnt work. seperate question does the bite work on actually people as in other member of the community

Never mind i got it. really good script you have

can you set it to a diffrent key the ctrl-home

Do it yourself? If you have a key conflicting with it its your responsibility to change it.

srry did not mean it in that wey what i ment is it able to be set to a diffrent key

Yes you can change it, If you scroll up you’ll see how.

@xander1998 K so i got the script working 2 things when the dog gets out it dies and when i point at someone and have him attack it wont work

I know the dog dies in CERTAIN vehicles but not all will be fixed when I do animations for the vehicle toggle… Are you spamming the key or pressing it one time on the attack. If you spam the key the dog will keep resetting itself you need to give him time to attack as they act like the AI dogs in the game (Takes a minute to attack).

K so just click once

Just point your gun at him. Press G. Let him go.