sirrjohn Posted August 31, 2023 Share Posted August 31, 2023 Hi, Is it possible to mute all peds from saying anything? including main player? Link to comment
Bishop_G Posted August 31, 2023 Share Posted August 31, 2023 use setPedVoice function. Link to comment
sirrjohn Posted September 1, 2023 Author Share Posted September 1, 2023 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now