[Release] K9 SCRIPT [WORKING] [UPDATED]

for us thats vmenu

Definitely, does work alt + home spawn the dog then press f1 and it will follow you,

yea it works to spawn and i can open the menu it just doesnt follow

do i press f1 while in the k9 menu?

cuz when i do left alt+ home it opens our addon car menu plus when i open f1 it opens that menu too

You will need to configure all your buttons

im jsut confused, so you just press f1 at anytime and it follows?

f1 will cycle the commands follow and heal

Just finished configuring it for my server, Great Job! Hope it works with more than one person lol

5 Likes

Yooo how did you get that vest to stream to the k9??

1 Like

its on the forums somewhere or lspdfr I think its been a while, you do need the eup subscription i believe

1 Like

You have to change the numbers 288 2x to any other key you wan’t that you can find here
[ https://docs.fivem.net/docs/game-references/controls/ ]

client.lua
Start at line: 366
Stops at line: 397

    Citizen.CreateThread(function()
        while true do
            Citizen.Wait(0)

            -- Trigger Opens Menu
            if IsControlPressed(1, 19) and IsControlJustPressed(1, 213) then
                TriggerServerEvent("K9:RequestOpenMenu")
            end

            -- Trigger Attack
            if IsControlJustPressed(1, 288) 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, 288) and not IsPlayerFreeAiming(PlayerId()) then
                TriggerEvent("K9:ToggleFollow")
            end

            if IsControlJustPressed(1, 178) then
                if spawned_ped ~= nil then
                    TriggerServerEvent("K9:RequestVehicleToggle")
                end
            end
        end
    end)```

This work with Onesync?

Seems to work, Tested in server with onesync havent tested with other players tho

i cant seem to get the menu to open or a k9 to sapwn can anyone advise on how to proceed

1 Like

Dog doesnt attack target, instead attacks the person targeting

make sure you have downloaded the version i uploaded, if you have you may need to update your fivem artifact, this version %100 works

Updated artifacts, for some reason when point gun at someone it attacks me not the target

you must have something conflicting, or did not download my version, this is what the original version did aswell