Jump to content

mute all peds


sirrjohn

Recommended Posts

For anyone who needs:

 

 For anyone who needs, put in clientside, tested and working

function mutePeds()	
    local peds = getElementsByType("ped")
    for _, ped in ipairs(peds) do
        setPedVoice(ped, "PED_TYPE_DISABLED")
    end
	setPedVoice(localPlayer, "PED_TYPE_DISABLED")
end
addEventHandler("onClientResourceStart",root,mutePeds)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...