NetworkIsPlayerTalking not work?

CreateThread(function()
	repeat Wait(200) until LocalPlayer.state.IsInSession
	Wait(500)
	while true do
		for _, i in ipairs(GetActivePlayers()) do
			if NetworkIsPlayerTalking(i) then
				-- do some
			end
		end
	end
end

изображение

1 Like

NetworkIsPlayerTalking is available only in FiveM. You can use:

MumbleIsPlayerTalking(PlayerId()) == 1

Source: https://github.com/AvarianKnight/pma-voice/blob/dc099d3f599c1bb96ac4c9cf0ef6e40d91e2042d/client/init/proximity.lua#L162C29-L162C67

2 Likes