[Release] K9 Script


#1202

Lovely. Keep doing amazing stuff. :heart:. If you could add clothing to the dogs it will looks amazing. ex. https://www.lcpdfr.com/files/file/19996-german-shepherd-malinois-k9-dog/


#1203

I won’t be using that because not everyone can use that model. When that model is available for EVERYONE then I will make the script use those models.


#1204

Any idea why my k9 dies on spawn, I’ve reinstalled the resource and it’s still spawn and fall over dead with the message your k9 died


#1205

I have seen that happen quite a bit with the current K9. I am working on another K9 but it is unknown when I will release the new version. Hopefully I have a pretty good version withing the next week or so.


#1206

still having trouble getting the k9 script in. i had it working before for a while then all of a sudden it stopped. Ive reinstalled it still wont work even tried different key bindings anyone help?


#1207

how do I add myself to the list to use ?


#1208

open config then go to line 6

K9Config.SteamIdentifiers = {
	"steam:place steam hex here"
}

Make sure line 4 looks like this…

K9Config.OpenMenuIdentifierRestriction = true

#1209

Hey bud, Is there a way to make the UI key based because on my ESX server the script actually stops people from being able to register cause the mouse freezes.


#1210

I have a very basic understanding of .lua and c# and i mean basic.

I have this on my server and its working yes their is little things that happen here or there but shit happens.
Most of those that complain do so out of ignorance and the fact they do not have the skills to create even a portion of what you have done.

Dont let the negativity bother you and please keep up your great work!


#1211

Is there anyway to take the key commands away? left on the dpad on an xbox controller is for my ELS and it suicides my dog when I go code 3 lmao.


#1212

Where can I change the keybinds for opening the menu? Is it in the server.lua somewhere?


#1213

Client. Search this topic. I have posted about it many times on here


#1214

Alright thanks


#1215

acually whats the key to open the menu ?


#1217

@Barbie Where is it Toxic when i ask what the Key is ? its a normal question.


#1218

To open it is left Alt+Home also next time just look at the keys in the code


#1219

Thanks! :slight_smile:

Yeah, i did but i guess i over-read that.


#1220

hey i have a question. i cannot seem to be able to get my dog to attack for some reason. ive tried changing the keybinds with no luck to get it working.

– Controls Menu
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

        -- Trigger Opens Menu
        if IsControlPressed(1, 316) then
            TriggerServerEvent("K9:RequestOpenMenu")
        end

        -- Trigger Attack
        if IsControlJustPressed(1, 49) and IsPlayerFreeAiming(PlayerId()) then
            local bool, target = GetEntityPlayerIsFreeAimingAt(PlayerId())

            if bool then
                if IsEntityAPed(target) then
                    TriggerEvent("K9:ToggleAttack", target)
                end
            end
        end

        -- Trigger Follow
        if IsControlJustPressed(1, 47) and not IsPlayerFreeAiming(PlayerId()) then
            TriggerEvent("K9:ToggleFollow")
        end

    end
end)

#1221

You point your gun and press G. If you have trainers enabled if the player has ignore all in their trainer the dog wont attack.


#1222

Is working again??