[SFX] Remove animal sound

Hello. Sorry for my English. I use translator.

I need to remove sound from cats and dogs when moving. I found AWC files containing sounds and replaced them with empty ones, but I can’t figure out how to stream them to the server. The replacement in OpenIV does not work because the RPF file breaks and prevents FiveM from starting. Perhaps someone
does he know how to do it right?

Hello, did you try this function ?

you can add it to a simple check of the nearest ped around you and, if i’ts an animal , do the SetAnimalMood to 0 like this :

local playerPed = PlayerPedId()
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(10)
        local ped = GetClosestPed(GetEntityCoords(playerPed), 50, 1, 0, 0, 0, 28)
        SetAnimalMood(ped, 0) -- or maybe "1" i dont try it
    end
end)