[IIS] K9 Policer | Dog Script | Control your own K9 pal!

where do you add the part so the dog doesnt bite you

mine is a bit different as ive changed a BUNCH/ pretty much rewriting it to be more then just dogs~
can generally see where to add the hacky fix to stop them attacking~ but this will NOT stop them from attacking other players etc if they fire thier weapon, each animal in gtav has a set “routine” ie cats run , rottys attack lol

i may eventually upload mine to git but im new to fivem and im jumping all around with different mods and things learning :slight_smile: today im trying to fix MLOs lol i need to go back to this and perfect somethings, i want to looking animal animations more, i was trying to make the cougar roar and open its mouth at same time, its 2 separate animations but im having alot of issues playing 2 at the same time while other clients can still see both too taskplayanimation isnt playing well lol

function Test(ped)
    ClearPedTasks(ped)
    RequestAnimDict("creatures@cougar@melee@")
    while not HasAnimDictLoaded("creatures@cougar@melee@") do
        Citizen.Wait(1)
    end 
    TaskPlayAnim(ped, "creatures@cougar@melee@", "growling_facial", 8.0, -8.0, -1, 32, 0, false, false, false )
    TaskPlayAnim(ped, "creatures@cougar@melee@", "growling", 8.0, -8.0, -1, 1, 0, false, false, false)


end

if anyone has any ideas flag 32 allows local client to see the animation, but others end up only seeing 1 play :frowning:

where do you place these things i cant figure out where will make them work

Hi! After editing the script a little, I managed to stop dog from attacking player and from fleeing. Only thing I wanted to ask, if anyone knows, how to make dog not kill player after attacking him and drops him to the ground? Also, did anyone figure out how to make Name box go away after you type in name of the dog and press Enter?

Cheers and thanks in advance!

where do i add the line to make the dog not attack on a gunshot?

hey i just installed and its not working for me.

Anyway to add ace perms to this or something?

1 Like

Hi dude, how did you fix the name entering issue?

i havent been doing anything with GTAV recently, been playing valheim and other games and things~
this is what i did for the name … not sure if the fix i did is here tho … its been weeks since i was working on it, planning to go back eventually, fivem has been really comming along recently

            if Animal == nil then
                if WarMenu.Button('Animal Name', 'Set Name') then
                    DisplayOnscreenKeyboard(1, "FMMC_MPM_NA", "", "", "", "", "", 30)
                    while (UpdateOnscreenKeyboard() == 0) do
                        DisableAllControlActions(0);
                        Wait(0);
                    end
                    if (GetOnscreenKeyboardResult()) then
                        AnimalName = GetOnscreenKeyboardResult()
                    end
                elseif WarMenu.ComboBox('Animal Species', animalBreeds, currentAnimalIndex, selectedAnimalIndex, function(currentIndex, selectedIndex)
                            currentAnimalIndex = currentIndex
                            selectedAnimalIndex = selectedIndex
                        end)
                then

there a way to make it so only people with certain steam identifiers can use the job

hey nice mod, only i have one problem, when i let my dog attack someone he doesn’t bite but he keeps barking at him

Any way to make the dog attack even if we have a calmAI on the server.

Everything works well except when it’s time to attack and I eared that it was a conflict with my calmAI script?

Can you upload your version of the script to git?

peut tu me whitlist pour ton serveur svp